From 180cf3c9025aa5ad0518a86a6ffb0af85b0066b5 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sun, 16 Apr 2023 21:29:17 -0300 Subject: [PATCH] feat: add a settings toggle for remote profile lookups Adds a toggle for the remote followers --- .../org/joinmastodon/android/fragments/SettingsFragment.java | 4 ++++ mastodon/src/main/res/values/strings_mo.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java index 2bc9159cc..368b0e1bc 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java @@ -187,6 +187,10 @@ public class SettingsFragment extends MastodonToolbarFragment{ GlobalUserPreferences.save(); needAppRestart=true; })); + items.add(new SwitchItem(R.string.mo_load_remote_followers, R.drawable.ic_fluent_people_24_regular, GlobalUserPreferences.loadRemoteAccountFollowers, i -> { + GlobalUserPreferences.loadRemoteAccountFollowers=i.checked; + GlobalUserPreferences.save(); + })); items.add(new SwitchItem(R.string.sk_settings_confirm_before_reblog, R.drawable.ic_fluent_checkmark_circle_24_regular, GlobalUserPreferences.confirmBeforeReblog, i->{ GlobalUserPreferences.confirmBeforeReblog=i.checked; GlobalUserPreferences.save(); diff --git a/mastodon/src/main/res/values/strings_mo.xml b/mastodon/src/main/res/values/strings_mo.xml index c3d38607c..864d85735 100644 --- a/mastodon/src/main/res/values/strings_mo.xml +++ b/mastodon/src/main/res/values/strings_mo.xml @@ -53,4 +53,5 @@ Disable double tap to swipe between tabs Use reblog action instead of bookmark action on notifications Download latest nightly release + Load remote profile follows and followers \ No newline at end of file