From f333d384667d7197572f96647b092aef6dc5e3a4 Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Tue, 20 Feb 2024 22:57:35 +0530 Subject: [PATCH] fixes --- .../pandroid/app/preferences/AppearancePreferences.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/AppearancePreferences.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/AppearancePreferences.java index 77e43b65f..6da738234 100644 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/AppearancePreferences.java +++ b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/AppearancePreferences.java @@ -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; } });