Just finish

This commit is contained in:
M66B 2018-10-22 12:53:46 +00:00
parent f90165ce71
commit c8dd2c0bda
1 changed files with 1 additions and 3 deletions

View File

@ -70,10 +70,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
Log.i(Helper.TAG, "Preference " + key + "=" + prefs.getAll().get(key)); Log.i(Helper.TAG, "Preference " + key + "=" + prefs.getAll().get(key));
if ("theme".equals(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(); finish();
startActivity(getIntent());
}
} }
private List<IBackPressedListener> backPressedListeners = new ArrayList<>(); private List<IBackPressedListener> backPressedListeners = new ArrayList<>();