From df7b53e10f05232e7104b8d85211f2a814f89bef Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Fri, 2 Jun 2023 13:48:26 -0300 Subject: [PATCH] feat(settings): move timeline settings around This moves the button to the topmost item on pleroma based instances --- .../android/fragments/settings/TimeLineFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/TimeLineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/TimeLineFragment.java index ec901026f..9766a14e0 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/TimeLineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/TimeLineFragment.java @@ -15,10 +15,6 @@ public class TimeLineFragment extends SettingsBaseFragment{ private SwitchItem showNewPostsItem, compactReblogReplyLineItem; @Override public void addItems(ArrayList items) { - items.add(new SwitchItem(R.string.sk_settings_show_replies, R.drawable.ic_fluent_chat_multiple_24_regular, GlobalUserPreferences.showReplies, i->{ - GlobalUserPreferences.showReplies=i.checked; - GlobalUserPreferences.save(); - })); if (getInstance().pleroma != null) { items.add(new ButtonItem(R.string.sk_settings_reply_visibility, R.drawable.ic_fluent_chat_24_regular, b->{ PopupMenu popupMenu=new PopupMenu(getActivity(), b, Gravity.CENTER_HORIZONTAL); @@ -35,6 +31,10 @@ public class TimeLineFragment extends SettingsBaseFragment{ }); })); } + items.add(new SwitchItem(R.string.sk_settings_show_replies, R.drawable.ic_fluent_chat_multiple_24_regular, GlobalUserPreferences.showReplies, i->{ + GlobalUserPreferences.showReplies=i.checked; + GlobalUserPreferences.save(); + })); items.add(new SwitchItem(R.string.sk_settings_show_boosts, R.drawable.ic_fluent_arrow_repeat_all_24_regular, GlobalUserPreferences.showBoosts, i->{ GlobalUserPreferences.showBoosts=i.checked; GlobalUserPreferences.save();