Verified Commit fd07dc00 authored by akwizgran's avatar akwizgran

Update comment.

parent bd983d97
...@@ -138,13 +138,12 @@ public class PanicPreferencesFragment extends PreferenceFragmentCompat ...@@ -138,13 +138,12 @@ public class PanicPreferencesFragment extends PreferenceFragmentCompat
@Override @Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
String key) { String key) {
if (key.equals(KEY_PURGE)) { // enable locking if purging gets enabled
// enable locking if purging gets enabled if (key.equals(KEY_PURGE) &&
if (sharedPreferences.getBoolean(KEY_PURGE, false)) { sharedPreferences.getBoolean(KEY_PURGE, false)) {
lockPref.setChecked(true); lockPref.setChecked(true);
}
} }
// disable purging and uninstalling if locking gets disabled // disable purging if locking gets disabled
if (key.equals(KEY_LOCK) && if (key.equals(KEY_LOCK) &&
!sharedPreferences.getBoolean(KEY_LOCK, true)) { !sharedPreferences.getBoolean(KEY_LOCK, true)) {
purgePref.setChecked(false); purgePref.setChecked(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment