From 28bb934b12d14474436f06a681c0d7448dbaee3b Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 22 Jul 2016 13:58:58 +0200 Subject: [PATCH] Update show stats settings on tile changing --- app/src/main/java/eu/faircode/netguard/ActivitySettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ActivitySettings.java b/app/src/main/java/eu/faircode/netguard/ActivitySettings.java index 0aaae09f..6dfddc5d 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivitySettings.java +++ b/app/src/main/java/eu/faircode/netguard/ActivitySettings.java @@ -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();