Browse Source

Just finish

main
M66B 6 years ago
parent
commit
c8dd2c0bda
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      app/src/main/java/eu/faircode/email/ActivityBase.java

+ 1
- 3
app/src/main/java/eu/faircode/email/ActivityBase.java View File

@ -70,10 +70,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
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)))) {
(!this.getClass().equals(ActivitySetup.class) && ("compact".equals(key) || "debug".equals(key))))
finish();
startActivity(getIntent());
}
}
private List<IBackPressedListener> backPressedListeners = new ArrayList<>();


Loading…
Cancel
Save