1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 10:47:28 +00:00

Small behavior improvement

This commit is contained in:
M66B 2020-07-02 13:34:37 +02:00
parent a3123dcee3
commit 2715fd1d00

View file

@ -119,6 +119,7 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
tvPending.setVisibility(View.GONE);
tvActivated.setVisibility(View.GONE);
tvInfo.setVisibility(View.GONE);
cbHide.setVisibility(View.GONE);
btnPurchase.setEnabled(!Helper.isPlayStoreInstall());
tvPrice.setText(null);
@ -208,6 +209,7 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
if ("pro".equals(key)) {
boolean pro = ActivityBilling.isPro(getContext());
tvActivated.setVisibility(pro ? View.VISIBLE : View.GONE);
tvInfo.setVisibility(pro ? View.GONE : View.VISIBLE);
cbHide.setVisibility(pro ? View.GONE : View.VISIBLE);
} else if ("banner_hidden".equals(key)) {
long banner_hidden = prefs.getLong("banner_hidden", 0);