mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-03 13:54:09 +00:00
Update show stats settings on tile changing
This commit is contained in:
parent
ad5f6c0145
commit
28bb934b12
1 changed files with 1 additions and 1 deletions
|
@ -458,10 +458,10 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
|
|||
} else if ("show_stats".equals(name)) {
|
||||
if (prefs.getBoolean(name, false) && !IAB.isPurchased(ActivityPro.SKU_SPEED, this)) {
|
||||
prefs.edit().putBoolean(name, false).apply();
|
||||
((TwoStatePreference) getPreferenceScreen().findPreference(name)).setChecked(false);
|
||||
startActivity(new Intent(this, ActivityPro.class));
|
||||
return;
|
||||
}
|
||||
((TwoStatePreference) getPreferenceScreen().findPreference(name)).setChecked(prefs.getBoolean(name, false));
|
||||
} else if ("install".equals(name)) {
|
||||
if (prefs.getBoolean(name, false) && !IAB.isPurchased(ActivityPro.SKU_NOTIFY, this)) {
|
||||
prefs.edit().putBoolean(name, false).apply();
|
||||
|
|
Loading…
Reference in a new issue