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); progressBar = (MaterialProgressBar) findViewById(R.id.progressBar);
newTopicFAB = (FloatingActionButton) findViewById(R.id.board_fab); newTopicFAB = (FloatingActionButton) findViewById(R.id.board_fab);
newTopicFAB.setEnabled(false); newTopicFAB.setEnabled(false);
if (!sessionManager.isLoggedIn()) newTopicFAB.hide(); newTopicFAB.hide();
/*if (!sessionManager.isLoggedIn()) newTopicFAB.hide();
else { else {
newTopicFAB.setOnClickListener(new View.OnClickListener() { newTopicFAB.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -125,7 +126,7 @@ public class BoardActivity extends BaseActivity implements BoardAdapter.OnLoadMo
} }
} }
}); });
} }*/
boardAdapter = new BoardAdapter(getApplicationContext(), parsedSubBoards, parsedTopics); boardAdapter = new BoardAdapter(getApplicationContext(), parsedSubBoards, parsedTopics);
RecyclerView mainContent = (RecyclerView) findViewById(R.id.board_recycler_view); 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 = (FloatingActionButton) findViewById(R.id.download_fab);
uploadFAB.setEnabled(false); uploadFAB.setEnabled(false);
uploadFAB.hide();
parseDownloadPageTask = new ParseDownloadPageTask(); parseDownloadPageTask = new ParseDownloadPageTask();
parseDownloadPageTask.execute(downloadsUrl); 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 = (FloatingActionButton) findViewById(R.id.profile_fab);
pmFAB.setEnabled(false); pmFAB.setEnabled(false);
if (!sessionManager.isLoggedIn()) pmFAB.hide(); pmFAB.hide();
/*if (!sessionManager.isLoggedIn()) pmFAB.hide();
else { else {
pmFAB.setOnClickListener(new View.OnClickListener() { pmFAB.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -163,7 +164,7 @@ public class ProfileActivity extends BaseActivity implements LatestPostsFragment
} }
} }
}); });
} }*/
LinkTarget.Target target = LinkTarget.resolveLinkTarget(Uri.parse(profileUrl)); LinkTarget.Target target = LinkTarget.resolveLinkTarget(Uri.parse(profileUrl));
if (!target.is(LinkTarget.Target.PROFILE)) { 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 = (FloatingActionButton) findViewById(R.id.topic_fab);
replyFAB.setEnabled(false); replyFAB.setEnabled(false);
if (!sessionManager.isLoggedIn()) replyFAB.hide(); replyFAB.hide();
/*if (!sessionManager.isLoggedIn()) replyFAB.hide();
else { else {
replyFAB.setOnClickListener(new View.OnClickListener() { replyFAB.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -168,7 +169,7 @@ public class TopicActivity extends BaseActivity {
} }
} }
}); });
} }*/
//Sets bottom navigation bar //Sets bottom navigation bar
firstPage = (ImageButton) findViewById(R.id.page_first_button); firstPage = (ImageButton) findViewById(R.id.page_first_button);

Loading…
Cancel
Save