mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-18 04:57:53 +02:00
Simplification
This commit is contained in:
@@ -101,7 +101,7 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
|
||||
btnPurchase.setEnabled(false);
|
||||
tvPrice.setText(null);
|
||||
btnCheck.setEnabled(false);
|
||||
btnCheck.setVisibility(Helper.isPlayStoreInstall(getContext()) && debug ? View.VISIBLE : View.GONE);
|
||||
btnCheck.setVisibility(Helper.isPlayStoreInstall() && debug ? View.VISIBLE : View.GONE);
|
||||
|
||||
return view;
|
||||
}
|
||||
@@ -182,7 +182,7 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
|
||||
boolean pro = prefs.getBoolean(key, false);
|
||||
tvActivated.setVisibility(pro ? View.VISIBLE : View.GONE);
|
||||
|
||||
if (!Helper.isPlayStoreInstall(getContext()))
|
||||
if (!Helper.isPlayStoreInstall())
|
||||
btnPurchase.setEnabled(!pro || BuildConfig.DEBUG);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user