mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-27 03:18:24 +01:00
New option in PostFragment: More options.
This commit is contained in:
parent
20214ce323
commit
4abadb78c4
@ -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;
|
||||
}
|
||||
|
@ -11,4 +11,10 @@
|
||||
android:orderInCategory="101"
|
||||
android:title="@string/filter_posts"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_more_options_post_fragment"
|
||||
android:orderInCategory="102"
|
||||
android:title="@string/action_more_options"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
@ -96,6 +96,7 @@
|
||||
<string name="action_go_to_wiki">Go to Wiki</string>
|
||||
<string name="action_playback_speed">Playback Speed</string>
|
||||
<string name="action_contact_mods">Contact Mods</string>
|
||||
<string name="action_more_options">More Options</string>
|
||||
|
||||
<string name="parse_json_response_error">Error occurred when parsing the JSON response</string>
|
||||
<string name="retrieve_token_error">Error Retrieving the token</string>
|
||||
|
Loading…
Reference in New Issue
Block a user