Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes #88

Merged
merged 2 commits into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ public boolean onPreferenceClick(Preference preference) {
Fragment fragment = null;
if (key.equals(Settings.EXPORT_PREF.key)) {
bundle.putBoolean("featureFlag", false);
fragment = new RestorePrefFragment();
fragment = new BackupPrefFragment();
} else if (key.equals(Settings.EXPORT_FLAGS.key)) {
bundle.putBoolean("featureFlag", true);
fragment = new RestorePrefFragment();
fragment = new BackupPrefFragment();
} else if (key.equals(Settings.IMPORT_PREF.key)) {
bundle.putBoolean("featureFlag", false);
fragment = new BackupPrefFragment();
fragment = new RestorePrefFragment();
} else if (key.equals(Settings.IMPORT_FLAGS.key)) {
bundle.putBoolean("featureFlag", true);
fragment = new BackupPrefFragment();
fragment = new RestorePrefFragment();
} else if (key.equals(Settings.PREMIUM_UNDO_POSTS.key)) {
Utils.startUndoPostActivity();
} else if (key.equals(Settings.PREMIUM_ICONS.key)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public Preference multiSelectListPref(String title, String summary, StringSettin
preference.setDialogTitle(title);
preference.setSummary(summary);
preference.setKey(key);
preference.setInitialValue(key);
return preference;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ public boolean onPreferenceChange(Preference preference, Object newValue) {
}
});
}

@Override
protected void onSetInitialValue(boolean restoreValue, Object defaultValue) {
super.onSetInitialValue(restoreValue, defaultValue);
String key = getKey();

public void setInitialValue(String key) {
CharSequence[] entries = new CharSequence[]{};
CharSequence[] entriesValues = new CharSequence[]{};
if (key == Settings.CUSTOM_PROFILE_TABS.key) {
Expand Down
Loading