mirror of https://github.com/M66B/FairEmail.git
Small layout improvement
This commit is contained in:
parent
0d932ad064
commit
6cefeb0ef3
|
@ -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(
|
||||
|
|
|
@ -104,17 +104,6 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvWhichever" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivExternal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:contentDescription="@string/title_pro_purchase"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/btnPurchase"
|
||||
app:layout_constraintStart_toEndOf="@+id/btnPurchase"
|
||||
app:layout_constraintTop_toTopOf="@+id/btnPurchase"
|
||||
app:srcCompat="@drawable/twotone_open_in_new_24" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPrice"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
Loading…
Reference in New Issue