mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-31 10:54:50 +01:00
Use ActivityCompat.recreate
This commit is contained in:
parent
50b4e4f235
commit
76defae00f
@ -5,6 +5,7 @@ import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import com.google.android.material.snackbar.Snackbar;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.core.app.ActivityCompat;
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
import android.widget.ListView;
|
||||
import de.danoeh.antennapod.R;
|
||||
@ -39,7 +40,7 @@ public class UserInterfacePreferencesFragment extends PreferenceFragmentCompat {
|
||||
findPreference(UserPreferences.PREF_THEME)
|
||||
.setOnPreferenceChangeListener(
|
||||
(preference, newValue) -> {
|
||||
getActivity().recreate();
|
||||
ActivityCompat.recreate(getActivity());
|
||||
return true;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user