Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Feb 20, 2024
1 parent 680f14b commit f333d38
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable S
listPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
GlobalConfig.set(GlobalConfig.KEY_APP_THEME, (Integer) newValue);
int themeValue = Integer.parseInt((String) newValue);
GlobalConfig.set(GlobalConfig.KEY_APP_THEME, themeValue);
return true;
}
});
Expand Down

0 comments on commit f333d38

Please sign in to comment.