Simplification

This commit is contained in:
M66B 2020-02-11 17:49:04 +01:00
parent af4bf5fad6
commit 457b8079d2
1 changed files with 1 additions and 4 deletions

View File

@ -141,7 +141,7 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
tvPending.setVisibility(View.GONE);
tvActivated.setVisibility(View.GONE);
cbHide.setVisibility(View.GONE);
btnPurchase.setEnabled(false);
btnPurchase.setEnabled(!Helper.isPlayStoreInstall());
tvPrice.setText(null);
btnCheck.setEnabled(false);
btnCheck.setVisibility(Helper.isPlayStoreInstall() && debug ? View.VISIBLE : View.GONE);
@ -225,9 +225,6 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
boolean pro = ActivityBilling.isPro(getContext());
tvActivated.setVisibility(pro ? View.VISIBLE : View.GONE);
cbHide.setVisibility(pro ? View.GONE : View.VISIBLE);
if (!Helper.isPlayStoreInstall())
btnPurchase.setEnabled(!pro || BuildConfig.DEBUG);
} else if ("banner".equals(key))
cbHide.setChecked(!prefs.getBoolean(key, true));
}