Renamed setting

This commit is contained in:
M66B
2019-11-15 14:27:28 +01:00
parent 4981b569b5
commit fe9ca75d9a
5 changed files with 21 additions and 14 deletions

View File

@@ -73,8 +73,9 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
this.contacts = hasPermission(Manifest.permission.READ_CONTACTS);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean no_history = prefs.getBoolean("no_history", false);
if (no_history)
boolean secure = prefs.getBoolean("secure", false);
if (secure)
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
if (!this.getClass().equals(ActivityMain.class)) {