Browse Source

TopicActivity title hotfix

pull/24/head
Ezerous 7 years ago
parent
commit
3cf14f305a
  1. 11
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

11
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

@ -214,17 +214,12 @@ public class TopicActivity extends BaseActivity {
toolbarTitle.setMarqueeRepeatLimit(-1);
toolbarTitle.setText(topicTitle);
toolbarTitle.setSelected(true);
toolbarTitle.setEnabled(false);
setSupportActionBar(toolbar);
if (getSupportActionBar() != null) {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
}
//Makes title scrollable
toolbarTitle.setHorizontallyScrolling(true);
toolbarTitle.setMovementMethod(new ScrollingMovementMethod());
createDrawer();
progressBar = findViewById(R.id.progressBar);
@ -696,11 +691,11 @@ public class TopicActivity extends BaseActivity {
parsedTitle = topic.select("td[id=top_subject]").first().text();
if (parsedTitle.contains("Topic:")) {
parsedTitle = parsedTitle.substring(parsedTitle.indexOf("Topic:") + 7
, parsedTitle.indexOf("(Read") - 2);
, parsedTitle.indexOf("(Read") - 1);
} else {
parsedTitle = parsedTitle.substring(parsedTitle.indexOf("Θέμα:") + 6
, parsedTitle.indexOf("(Αναγνώστηκε") - 2);
Timber.d(parsedTitle);
, parsedTitle.indexOf("(Αναγνώστηκε") - 1);
Timber.d("Parsed title: %s", parsedTitle);
}
}

Loading…
Cancel
Save