Browse Source

Hided floating action buttons.

pull/24/head
Apostolos Fanakis 8 years ago
parent
commit
da30d1c471
  1. 5
      app/src/main/java/gr/thmmy/mthmmy/activities/board/BoardActivity.java
  2. 1
      app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java
  3. 5
      app/src/main/java/gr/thmmy/mthmmy/activities/profile/ProfileActivity.java
  4. 5
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

5
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);

1
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);

5
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)) {

5
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);

Loading…
Cancel
Save