mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Revert "Explicitly recreate on ui mode changes"
This reverts commit 3ad79fe6a2.
This commit is contained in:
@@ -65,7 +65,6 @@ import java.util.Map;
|
||||
|
||||
abstract class ActivityBase extends AppCompatActivity implements SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
private Context originalContext;
|
||||
private int themeId;
|
||||
private boolean visible;
|
||||
private boolean contacts;
|
||||
private List<IKeyPressedListener> keyPressedListeners = new ArrayList<>();
|
||||
@@ -99,8 +98,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
|
||||
|
||||
if (!this.getClass().equals(ActivityMain.class)) {
|
||||
themeId = FragmentDialogTheme.getTheme(this);
|
||||
setTheme(themeId);
|
||||
setTheme(FragmentDialogTheme.getTheme(this));
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
boolean dark = Helper.isDarkTheme(this);
|
||||
@@ -194,10 +192,6 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
Log.d("Config " + this.getClass().getName());
|
||||
super.onConfigurationChanged(newConfig);
|
||||
|
||||
if (!this.getClass().equals(ActivityMain.class) &&
|
||||
themeId != FragmentDialogTheme.getTheme(this))
|
||||
recreate();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user