mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Restart on theme change
This commit is contained in:
parent
a7cf175067
commit
27d27681f1
1 changed files with 4 additions and 2 deletions
|
@ -69,8 +69,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|||
@Override
|
||||
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
|
||||
Log.i(Helper.TAG, "Preference " + key + "=" + prefs.getAll().get(key));
|
||||
if ("theme".equals(key) ||
|
||||
(!this.getClass().equals(ActivitySetup.class) && ("compact".equals(key) || "debug".equals(key))))
|
||||
if ("theme".equals(key)) {
|
||||
finish();
|
||||
startActivity(getIntent());
|
||||
} else if (!this.getClass().equals(ActivitySetup.class) && ("compact".equals(key) || "debug".equals(key)))
|
||||
finish();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue