mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-01-07 00:20:08 +02:00
Fix a crash
This commit is contained in:
parent
88f5ed27bd
commit
15ce78b85a
1 changed files with 2 additions and 4 deletions
|
@ -23,7 +23,6 @@ import androidx.preference.PreferenceFragmentCompat;
|
|||
|
||||
import app.fedilab.android.R;
|
||||
import app.fedilab.android.helper.Helper;
|
||||
import app.fedilab.android.helper.ThemeHelper;
|
||||
import es.dmoral.toasty.Toasty;
|
||||
|
||||
public class FragmentThemingSettings extends PreferenceFragmentCompat implements SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
|
@ -61,9 +60,8 @@ public class FragmentThemingSettings extends PreferenceFragmentCompat implements
|
|||
if (key.compareTo(getString(R.string.SET_THEME_BASE)) == 0) {
|
||||
ListPreference SET_THEME_BASE = findPreference(getString(R.string.SET_THEME_BASE));
|
||||
if (SET_THEME_BASE != null) {
|
||||
ThemeHelper.switchTo(SET_THEME_BASE.getValue());
|
||||
requireActivity().recreate();
|
||||
Helper.recreateMainActivity(requireActivity());
|
||||
requireActivity().finish();
|
||||
startActivity(requireActivity().getIntent());
|
||||
}
|
||||
}
|
||||
//TODO: check if can be removed
|
||||
|
|
Loading…
Reference in a new issue