From da30d1c471152a33d52423bde7f11be4363a84fb Mon Sep 17 00:00:00 2001 From: Apostolof Date: Thu, 19 Jan 2017 23:11:59 +0200 Subject: [PATCH] Hided floating action buttons. --- .../java/gr/thmmy/mthmmy/activities/board/BoardActivity.java | 5 +++-- .../thmmy/mthmmy/activities/downloads/DownloadsActivity.java | 1 + .../gr/thmmy/mthmmy/activities/profile/ProfileActivity.java | 5 +++-- .../java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java | 5 +++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java index 734eafff..8abb4498 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java @@ -97,7 +97,8 @@ public class BoardActivity extends BaseActivity implements BoardAdapter.OnLoadMo progressBar = (MaterialProgressBar) findViewById(R.id.progressBar); newTopicFAB = (FloatingActionButton) findViewById(R.id.board_fab); newTopicFAB.setEnabled(false); - if (!sessionManager.isLoggedIn()) newTopicFAB.hide(); + newTopicFAB.hide(); + /*if (!sessionManager.isLoggedIn()) newTopicFAB.hide(); else { newTopicFAB.setOnClickListener(new View.OnClickListener() { @Override @@ -125,7 +126,7 @@ public class BoardActivity extends BaseActivity implements BoardAdapter.OnLoadMo } } }); - } + }*/ boardAdapter = new BoardAdapter(getApplicationContext(), parsedSubBoards, parsedTopics); RecyclerView mainContent = (RecyclerView) findViewById(R.id.board_recycler_view); diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java index a249627a..356d5024 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java @@ -118,6 +118,7 @@ public class DownloadsActivity extends BaseActivity implements DownloadsAdapter. uploadFAB = (FloatingActionButton) findViewById(R.id.download_fab); uploadFAB.setEnabled(false); + uploadFAB.hide(); parseDownloadPageTask = new ParseDownloadPageTask(); parseDownloadPageTask.execute(downloadsUrl); 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 383323be..2e622f1f 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 @@ -135,7 +135,8 @@ public class ProfileActivity extends BaseActivity implements LatestPostsFragment pmFAB = (FloatingActionButton) findViewById(R.id.profile_fab); pmFAB.setEnabled(false); - if (!sessionManager.isLoggedIn()) pmFAB.hide(); + pmFAB.hide(); + /*if (!sessionManager.isLoggedIn()) pmFAB.hide(); else { pmFAB.setOnClickListener(new View.OnClickListener() { @Override @@ -163,7 +164,7 @@ public class ProfileActivity extends BaseActivity implements LatestPostsFragment } } }); - } + }*/ LinkTarget.Target target = LinkTarget.resolveLinkTarget(Uri.parse(profileUrl)); if (!target.is(LinkTarget.Target.PROFILE)) { 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 b940cda7..1c13c834 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 @@ -140,7 +140,8 @@ public class TopicActivity extends BaseActivity { replyFAB = (FloatingActionButton) findViewById(R.id.topic_fab); replyFAB.setEnabled(false); - if (!sessionManager.isLoggedIn()) replyFAB.hide(); + replyFAB.hide(); + /*if (!sessionManager.isLoggedIn()) replyFAB.hide(); else { replyFAB.setOnClickListener(new View.OnClickListener() { @Override @@ -168,7 +169,7 @@ public class TopicActivity extends BaseActivity { } } }); - } + }*/ //Sets bottom navigation bar firstPage = (ImageButton) findViewById(R.id.page_first_button);