aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-11-03 11:13:08 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-11-03 11:13:08 +0000
commit4abadb78c4f56b2b8d61bd7130073ca2bb712545 (patch)
tree41e2d4f744dd9ce5b20d3b0ebe4b7de201a0afe3 /app/src/main/java
parent20214ce32302b48e83404f66ba9ccb79c64830d0 (diff)
downloadinfinity-for-reddit-4abadb78c4f56b2b8d61bd7130073ca2bb712545.tar
infinity-for-reddit-4abadb78c4f56b2b8d61bd7130073ca2bb712545.tar.gz
infinity-for-reddit-4abadb78c4f56b2b8d61bd7130073ca2bb712545.tar.bz2
infinity-for-reddit-4abadb78c4f56b2b8d61bd7130073ca2bb712545.tar.lz
infinity-for-reddit-4abadb78c4f56b2b8d61bd7130073ca2bb712545.tar.xz
infinity-for-reddit-4abadb78c4f56b2b8d61bd7130073ca2bb712545.tar.zst
infinity-for-reddit-4abadb78c4f56b2b8d61bd7130073ca2bb712545.zip
New option in PostFragment: More options.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
index 2cd04385..7eb5756a 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
@@ -81,6 +81,7 @@ import ml.docilealligator.infinityforreddit.adapters.Paging3LoadingStateAdapter;
import ml.docilealligator.infinityforreddit.adapters.PostRecyclerViewAdapter;
import ml.docilealligator.infinityforreddit.asynctasks.LoadSubredditIcon;
import ml.docilealligator.infinityforreddit.asynctasks.LoadUserData;
+import ml.docilealligator.infinityforreddit.bottomsheetfragments.FABMoreOptionsBottomSheetFragment;
import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper;
import ml.docilealligator.infinityforreddit.customviews.CustomToroContainer;
import ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed;
@@ -1316,6 +1317,13 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
} else if (item.getItemId() == R.id.action_filter_posts_post_fragment) {
filterPosts();
return true;
+ } else if (item.getItemId() == R.id.action_more_options_post_fragment) {
+ FABMoreOptionsBottomSheetFragment fabMoreOptionsBottomSheetFragment= new FABMoreOptionsBottomSheetFragment();
+ Bundle bundle = new Bundle();
+ bundle.putBoolean(FABMoreOptionsBottomSheetFragment.EXTRA_ANONYMOUS_MODE, accessToken == null);
+ fabMoreOptionsBottomSheetFragment.setArguments(bundle);
+ fabMoreOptionsBottomSheetFragment.show(activity.getSupportFragmentManager(), fabMoreOptionsBottomSheetFragment.getTag());
+ return true;
}
return false;
}