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:
parent
e66e3cc83d
commit
f8bf69daf9
1 changed files with 1 additions and 69 deletions
|
@ -107,7 +107,7 @@ public class AppSettings {
|
||||||
return getString(prefPod, R.string.pref_key__podprofile_id, "");
|
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);
|
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);
|
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() {
|
public int getMinimumFontSize() {
|
||||||
switch (getString(prefApp, R.string.pref_key__font_size, "")) {
|
switch (getString(prefApp, R.string.pref_key__font_size, "")) {
|
||||||
case "huge":
|
case "huge":
|
||||||
|
@ -261,10 +257,6 @@ public class AppSettings {
|
||||||
return getBoolean(prefApp, R.string.pref_key__append_shared_via_app, true);
|
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")
|
@SuppressLint("CommitPrefEdits")
|
||||||
public void setProxyHttpEnabled(boolean enabled) {
|
public void setProxyHttpEnabled(boolean enabled) {
|
||||||
//commit instead of apply because the app is likely to be killed before apply is called.
|
//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);
|
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() {
|
public boolean isChromeCustomTabsEnabled() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__chrome_custom_tabs_enabled, true);
|
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() {
|
public boolean isLoggingEnabled() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__logging_enabled, true);
|
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() {
|
public boolean isLoggingSpamEnabled() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__logging_spam_enabled, false);
|
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() {
|
public boolean isVisibleInNavExit() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__exit, false);
|
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() {
|
public boolean isVisibleInNavHelp_license() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__help_license, true);
|
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() {
|
public boolean isVisibleInNavPublic_activities() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__public_activities, false);
|
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() {
|
public boolean isVisibleInNavMentions() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__mentions, false);
|
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() {
|
public boolean isVisibleInNavCommented() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__commented, true);
|
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() {
|
public boolean isVisibleInNavLiked() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__liked, true);
|
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() {
|
public boolean isVisibleInNavActivities() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__activities, true);
|
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() {
|
public boolean isVisibleInNavAspects() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__aspects, true);
|
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() {
|
public boolean isVisibleInNavFollowed_tags() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__followed_tags, true);
|
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() {
|
public boolean isVisibleInNavProfile() {
|
||||||
return getBoolean(prefApp, R.string.pref_key__visibility_nav__profile, true);
|
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) {
|
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_base, base);
|
||||||
setInt(prefApp, R.string.pref_key__primary_color_shade, shade);
|
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);
|
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) {
|
public boolean getThemedCheckboxPreferenceValue(ThemedCheckBoxPreference t) {
|
||||||
return prefApp.getBoolean(t.getPrefKey(), t.getDefaultValue());
|
return prefApp.getBoolean(t.getPrefKey(), t.getDefaultValue());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue