From 3cf14f305ae8e46d9681626e242e66654cc6fa31 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Mon, 13 Nov 2017 18:26:54 +0200 Subject: [PATCH] TopicActivity title hotfix --- .../thmmy/mthmmy/activities/topic/TopicActivity.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java index ecffb2f2..94354543 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java +++ b/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); } }