aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-12-03 23:28:03 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-12-03 23:28:03 +0000
commitfbf4201418070ba997f76e3c86cac6dc46cce6a1 (patch)
tree40eea3227bf540607d42387c7e562c8cdb9b6fda /app/src/main/java
parentecbddaafcbb276eb4418293709e68e99d2f9ad04 (diff)
downloadinfinity-for-reddit-fbf4201418070ba997f76e3c86cac6dc46cce6a1.tar
infinity-for-reddit-fbf4201418070ba997f76e3c86cac6dc46cce6a1.tar.gz
infinity-for-reddit-fbf4201418070ba997f76e3c86cac6dc46cce6a1.tar.bz2
infinity-for-reddit-fbf4201418070ba997f76e3c86cac6dc46cce6a1.tar.lz
infinity-for-reddit-fbf4201418070ba997f76e3c86cac6dc46cce6a1.tar.xz
infinity-for-reddit-fbf4201418070ba997f76e3c86cac6dc46cce6a1.tar.zst
infinity-for-reddit-fbf4201418070ba997f76e3c86cac6dc46cce6a1.zip
Hide more options menu item in some activities.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java7
1 files changed, 7 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 763ef3cb..35b470b8 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
@@ -75,6 +75,8 @@ import ml.docilealligator.infinityforreddit.R;
import ml.docilealligator.infinityforreddit.RecyclerViewContentScrollingInterface;
import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase;
import ml.docilealligator.infinityforreddit.SortType;
+import ml.docilealligator.infinityforreddit.activities.AccountPostsActivity;
+import ml.docilealligator.infinityforreddit.activities.AccountSavedThingActivity;
import ml.docilealligator.infinityforreddit.activities.BaseActivity;
import ml.docilealligator.infinityforreddit.activities.FilteredPostsActivity;
import ml.docilealligator.infinityforreddit.activities.ViewSubredditDetailActivity;
@@ -1317,6 +1319,11 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
if (activity instanceof FilteredPostsActivity) {
menu.findItem(R.id.action_filter_posts_post_fragment).setVisible(false);
}
+
+ if (activity instanceof FilteredPostsActivity || activity instanceof AccountPostsActivity
+ || activity instanceof AccountSavedThingActivity) {
+ menu.findItem(R.id.action_more_options_post_fragment).setVisible(false);
+ }
}
@Override