From 70eff69a731c5f63043f5e5e9d85a252d3509a3d Mon Sep 17 00:00:00 2001 From: Apostolof Date: Fri, 30 Dec 2016 17:05:18 +0200 Subject: [PATCH] Code cleanup and fixes --- .../mthmmy/activities/main/MainActivity.java | 2 +- .../activities/profile/ProfileActivity.java | 4 +-- .../main/res/layout-v21/activity_profile.xml | 6 ++-- app/src/main/res/layout/activity_profile.xml | 31 ++++++++++--------- app/src/main/res/layout/activity_topic.xml | 1 - 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java index 7be5d9f9..bb8fc02d 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java @@ -89,7 +89,7 @@ public class MainActivity extends BaseActivity implements RecentFragment.RecentF @Override public void onRecentFragmentInteraction(TopicSummary topicSummary) { Intent i = new Intent(MainActivity.this, TopicActivity.class); - i.putExtra(EXTRAS_TOPIC_URL, topicSummary.getTopicUrl()); + i.putExtra(EXTRAS_TOPIC_URL, "https://www.thmmy.gr/smf/index.php?topic=67565.0"); i.putExtra(EXTRAS_TOPIC_TITLE, topicSummary.getTitle()); startActivity(i); } diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/profile/ProfileActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/profile/ProfileActivity.java index ca90eb28..ab984d39 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/profile/ProfileActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/profile/ProfileActivity.java @@ -99,8 +99,8 @@ public class ProfileActivity extends BaseActivity { userThumbnail = (ImageView) findViewById(R.id.user_thumbnail); userName = (TextView) findViewById(R.id.profile_act_username); - personalText = (TextView) findViewById(R.id.profile_act_personal_text); - mainContent = (LinearLayout) findViewById(R.id.profile_act_content); + personalText = (TextView) findViewById(R.id.profile_activity_personal_text); + mainContent = (LinearLayout) findViewById(R.id.profile_activity_content); replyFAB = (FloatingActionButton) findViewById(R.id.profile_fab); replyFAB.setEnabled(false); diff --git a/app/src/main/res/layout-v21/activity_profile.xml b/app/src/main/res/layout-v21/activity_profile.xml index 41f9f8e4..e659787c 100644 --- a/app/src/main/res/layout-v21/activity_profile.xml +++ b/app/src/main/res/layout-v21/activity_profile.xml @@ -17,7 +17,7 @@ android:theme="@style/ToolbarTheme"> - - + + -