|
@@ -31,11 +31,11 @@ import android.content.SharedPreferences;
|
|
import android.content.pm.PackageInfo;
|
|
import android.content.pm.PackageInfo;
|
|
import android.content.pm.PackageManager.NameNotFoundException;
|
|
import android.content.pm.PackageManager.NameNotFoundException;
|
|
import android.content.res.Configuration;
|
|
import android.content.res.Configuration;
|
|
-import android.graphics.drawable.ColorDrawable;
|
|
|
|
import android.net.Uri;
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
import android.preference.ListPreference;
|
|
import android.preference.ListPreference;
|
|
import android.preference.Preference;
|
|
import android.preference.Preference;
|
|
|
|
+import android.preference.PreferenceActivity;
|
|
import android.preference.PreferenceCategory;
|
|
import android.preference.PreferenceCategory;
|
|
import android.preference.PreferenceManager;
|
|
import android.preference.PreferenceManager;
|
|
import android.preference.PreferenceScreen;
|
|
import android.preference.PreferenceScreen;
|
|
@@ -98,7 +98,7 @@ import androidx.core.content.res.ResourcesCompat;
|
|
* <p>
|
|
* <p>
|
|
* It proxies the necessary calls via {@link androidx.appcompat.app.AppCompatDelegate} to be used with AppCompat.
|
|
* It proxies the necessary calls via {@link androidx.appcompat.app.AppCompatDelegate} to be used with AppCompat.
|
|
*/
|
|
*/
|
|
-public class SettingsActivity extends ThemedPreferenceActivity
|
|
|
|
|
|
+public class SettingsActivity extends PreferenceActivity
|
|
implements StorageMigration.StorageMigrationProgressListener, LoadingVersionNumberTask.VersionDevInterface,
|
|
implements StorageMigration.StorageMigrationProgressListener, LoadingVersionNumberTask.VersionDevInterface,
|
|
Injectable {
|
|
Injectable {
|
|
|
|
|
|
@@ -151,10 +151,6 @@ public class SettingsActivity extends ThemedPreferenceActivity
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
- if (themeUtils.themingEnabled(this)) {
|
|
|
|
- setTheme(R.style.FallbackThemingTheme);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
getDelegate().installViewFactory();
|
|
getDelegate().installViewFactory();
|
|
getDelegate().onCreate(savedInstanceState);
|
|
getDelegate().onCreate(savedInstanceState);
|
|
addPreferencesFromResource(R.xml.preferences);
|
|
addPreferencesFromResource(R.xml.preferences);
|
|
@@ -729,6 +725,10 @@ public class SettingsActivity extends ThemedPreferenceActivity
|
|
DarkMode mode = DarkMode.valueOf((String) newValue);
|
|
DarkMode mode = DarkMode.valueOf((String) newValue);
|
|
preferences.setDarkThemeMode(mode);
|
|
preferences.setDarkThemeMode(mode);
|
|
MainApp.setAppTheme(mode);
|
|
MainApp.setAppTheme(mode);
|
|
|
|
+ finish();
|
|
|
|
+ Intent intent = new Intent(this, SettingsActivity.class);
|
|
|
|
+ intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
|
|
|
|
+ startActivity(intent);
|
|
|
|
|
|
return true;
|
|
return true;
|
|
});
|
|
});
|