diff --git a/app/src/main/java/com/github/dfa/diaspora_android/data/AppSettings.java b/app/src/main/java/com/github/dfa/diaspora_android/data/AppSettings.java index 24464f0d..24fff68a 100644 --- a/app/src/main/java/com/github/dfa/diaspora_android/data/AppSettings.java +++ b/app/src/main/java/com/github/dfa/diaspora_android/data/AppSettings.java @@ -107,7 +107,7 @@ public class AppSettings { return getString(prefPod, R.string.pref_key__podprofile_id, ""); } - public void setProfileId(String profileId) { + void setProfileId(String profileId) { setString(prefPod, R.string.pref_key__podprofile_id, profileId); } @@ -115,10 +115,6 @@ public class AppSettings { return getBoolean(prefApp, R.string.pref_key__load_images, true); } - public void setLoadImages(boolean b) { - setBool(prefApp, R.string.pref_key__load_images, b); - } - public int getMinimumFontSize() { switch (getString(prefApp, R.string.pref_key__font_size, "")) { case "huge": @@ -261,10 +257,6 @@ public class AppSettings { return getBoolean(prefApp, R.string.pref_key__append_shared_via_app, true); } - public void setAppendSharedViaApp(boolean b) { - setBool(prefApp, R.string.pref_key__append_shared_via_app, b); - } - @SuppressLint("CommitPrefEdits") public void setProxyHttpEnabled(boolean enabled) { //commit instead of apply because the app is likely to be killed before apply is called. @@ -320,114 +312,58 @@ public class AppSettings { return getBoolean(prefApp, R.string.pref_key__intellihide_toolbars, true); } - public void setIntellihideToolbars(boolean b) { - setBool(prefApp, R.string.pref_key__intellihide_toolbars, b); - } - public boolean isChromeCustomTabsEnabled() { return getBoolean(prefApp, R.string.pref_key__chrome_custom_tabs_enabled, true); } - public void setChromeCustomTabsEnabled(boolean b) { - setBool(prefApp, R.string.pref_key__chrome_custom_tabs_enabled, b); - } - public boolean isLoggingEnabled() { return getBoolean(prefApp, R.string.pref_key__logging_enabled, true); } - public void setLoggingEnabled(boolean b) { - setBool(prefApp, R.string.pref_key__logging_enabled, b); - } - public boolean isLoggingSpamEnabled() { return getBoolean(prefApp, R.string.pref_key__logging_spam_enabled, false); } - public void setLoggingSpamEnabled(boolean b) { - setBool(prefApp, R.string.pref_key__logging_spam_enabled, b); - } - public boolean isVisibleInNavExit() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__exit, false); } - public void setVisibleInNavExit(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__exit, b); - } - public boolean isVisibleInNavHelp_license() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__help_license, true); } - public void setVisibleInNavHelp_license(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__help_license, b); - } - public boolean isVisibleInNavPublic_activities() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__public_activities, false); } - public void setVisibleInNavPublic_activities(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__public_activities, b); - } - public boolean isVisibleInNavMentions() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__mentions, false); } - public void setVisibleInNavMentions(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__mentions, b); - } - public boolean isVisibleInNavCommented() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__commented, true); } - public void setVisibleInNavCommented(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__commented, b); - } - public boolean isVisibleInNavLiked() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__liked, true); } - public void setVisibleInNavLiked(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__liked, b); - } - public boolean isVisibleInNavActivities() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__activities, true); } - public void setVisibleInNavActivities(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__activities, b); - } - public boolean isVisibleInNavAspects() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__aspects, true); } - public void setVisibleInNavAspects(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__aspects, b); - } - public boolean isVisibleInNavFollowed_tags() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__followed_tags, true); } - public void setVisibleInNavFollowedTags(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__followed_tags, b); - } - public boolean isVisibleInNavProfile() { return getBoolean(prefApp, R.string.pref_key__visibility_nav__profile, true); } - public void setVisibleInNavProfile(boolean b) { - setBool(prefApp, R.string.pref_key__visibility_nav__profile, b); - } - public void setPrimaryColorPickerSettings(int base, int shade) { setInt(prefApp, R.string.pref_key__primary_color_base, base); setInt(prefApp, R.string.pref_key__primary_color_shade, shade); @@ -472,10 +408,6 @@ public class AppSettings { return getBoolean(prefApp, R.string.pref_key__extended_notifications, false); } - public void setExtendedNotifications(boolean b) { - setBool(prefApp, R.string.pref_key__extended_notifications, b); - } - public boolean getThemedCheckboxPreferenceValue(ThemedCheckBoxPreference t) { return prefApp.getBoolean(t.getPrefKey(), t.getDefaultValue()); }