diff --git a/app/src/main/java/eu/faircode/email/FragmentPro.java b/app/src/main/java/eu/faircode/email/FragmentPro.java index 5ad05a1842..7e99b8dfcb 100644 --- a/app/src/main/java/eu/faircode/email/FragmentPro.java +++ b/app/src/main/java/eu/faircode/email/FragmentPro.java @@ -58,7 +58,6 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha private CheckBox cbHide; private TextView tvList; private Button btnPurchase; - private ImageView ivExternal; private TextView tvPrice; private TextView tvGoogle; private TextView tvNoPlay; @@ -88,7 +87,6 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha cbHide = view.findViewById(R.id.cbHide); tvList = view.findViewById(R.id.tvList); btnPurchase = view.findViewById(R.id.btnPurchase); - ivExternal = view.findViewById(R.id.ivExternal); tvPrice = view.findViewById(R.id.tvPrice); tvGoogle = view.findViewById(R.id.tvGoogle); tvNoPlay = view.findViewById(R.id.tvNoPlay); @@ -189,7 +187,8 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha btnBackup.setVisibility(View.GONE); cbHide.setVisibility(View.GONE); btnPurchase.setEnabled(!play); - ivExternal.setVisibility(play ? View.GONE : View.VISIBLE); + btnPurchase.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, + play ? R.drawable.twotone_shopping_cart_24 : R.drawable.twotone_open_in_new_24, 0); tvPrice.setVisibility(View.GONE); tvGoogle.setVisibility(play ? View.VISIBLE : View.GONE); tvNoPlay.setVisibility( diff --git a/app/src/main/res/layout/fragment_pro.xml b/app/src/main/res/layout/fragment_pro.xml index 789a2305ca..ba7b76186d 100644 --- a/app/src/main/res/layout/fragment_pro.xml +++ b/app/src/main/res/layout/fragment_pro.xml @@ -104,17 +104,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvWhichever" /> - -