Skip to content

Commit

Permalink
Merge pull request #88 from swakwork/dev
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
crimera authored Aug 25, 2024
2 parents f6de0b7 + 5b16de7 commit 54d2527
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
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

0 comments on commit 54d2527

Please sign in to comment.