1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-24 13:22:08 +01:00

Removed old unused appSettings Methods

This commit is contained in:
vanitasvitae 2016-10-24 20:17:28 +02:00
parent e66e3cc83d
commit f8bf69daf9
Signed by: vanitasvitae
GPG key ID: DCCFB3302C9E4615

View file

@ -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());
}