|
@ -69,8 +69,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc |
|
|
@Override |
|
|
@Override |
|
|
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) || |
|
|
|
|
|
(!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(); |
|
|
finish(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|