mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-30 11:34:43 +01:00
Filter posts option in toolbar.
This commit is contained in:
parent
7feb78f133
commit
ff69387221
@ -1288,6 +1288,10 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
||||
} else {
|
||||
lazyModeItem.setTitle(R.string.action_start_lazy_mode);
|
||||
}
|
||||
|
||||
if (activity instanceof FilteredPostsActivity) {
|
||||
menu.findItem(R.id.action_filter_posts_post_fragment).setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -1299,6 +1303,9 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
||||
startLazyMode();
|
||||
}
|
||||
return true;
|
||||
} else if (item.getItemId() == R.id.action_filter_posts_post_fragment) {
|
||||
filterPosts();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -5,4 +5,10 @@
|
||||
android:id="@+id/action_lazy_mode_post_fragment"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_filter_posts_post_fragment"
|
||||
android:orderInCategory="101"
|
||||
android:title="@string/filter_posts"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
Loading…
x
Reference in New Issue
Block a user