mirror of https://github.com/M66B/FairEmail.git
Added purchase hint text
This commit is contained in:
parent
2d9aabdc65
commit
ba9d810791
|
@ -59,8 +59,9 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
|
|||
private TextView tvList;
|
||||
private Button btnPurchase;
|
||||
private ImageView ivExternal;
|
||||
private TextView tvNoPlay;
|
||||
private TextView tvPrice;
|
||||
private TextView tvGoogle;
|
||||
private TextView tvNoPlay;
|
||||
private TextView tvPriceHint;
|
||||
private TextView tvFamilyHint;
|
||||
private TextView tvRestoreHint;
|
||||
|
@ -87,8 +88,9 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
|
|||
tvList = view.findViewById(R.id.tvList);
|
||||
btnPurchase = view.findViewById(R.id.btnPurchase);
|
||||
ivExternal = view.findViewById(R.id.ivExternal);
|
||||
tvNoPlay = view.findViewById(R.id.tvNoPlay);
|
||||
tvPrice = view.findViewById(R.id.tvPrice);
|
||||
tvGoogle = view.findViewById(R.id.tvGoogle);
|
||||
tvNoPlay = view.findViewById(R.id.tvNoPlay);
|
||||
tvPriceHint = view.findViewById(R.id.tvPriceHint);
|
||||
tvFamilyHint = view.findViewById(R.id.tvFamilyHint);
|
||||
tvRestoreHint = view.findViewById(R.id.tvRestoreHint);
|
||||
|
@ -180,6 +182,7 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
|
|||
btnPurchase.setEnabled(!play);
|
||||
ivExternal.setVisibility(play ? View.GONE : View.VISIBLE);
|
||||
tvPrice.setVisibility(View.GONE);
|
||||
tvGoogle.setVisibility(play ? View.VISIBLE : View.GONE);
|
||||
tvNoPlay.setVisibility(
|
||||
BuildConfig.PLAY_STORE_RELEASE && !Helper.hasPlayStore(getContext())
|
||||
? View.VISIBLE : View.GONE);
|
||||
|
|
|
@ -111,6 +111,26 @@
|
|||
app:layout_constraintTop_toTopOf="@+id/btnPurchase"
|
||||
app:srcCompat="@drawable/twotone_open_in_new_24" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvPrice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="5 euro (once only)"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btnPurchase" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvGoogle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="@string/title_pro_google"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvPrice" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvNoPlay"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -120,17 +140,7 @@
|
|||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
android:textColor="?attr/colorWarning"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btnPurchase" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvPrice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="5 euro (once only)"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvNoPlay" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvGoogle" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvHint"
|
||||
|
@ -140,7 +150,7 @@
|
|||
android:text="@string/title_pro_hint"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvPrice" />
|
||||
app:layout_constraintTop_toBottomOf="@id/tvNoPlay" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvPriceHint"
|
||||
|
|
|
@ -1884,6 +1884,7 @@
|
|||
FairEmail shows a small message to remind you of this, which will be removed if you purchase the pro features.
|
||||
</string>
|
||||
<string name="title_pro_whichever">Whichever features are chosen as pro features, there is always someone who complains that a feature should be free. Please don\'t be that person.</string>
|
||||
<string name="title_pro_google">The app initiates a Play store purchase, but Google manages the purchase process. So please don\'t blame the app in case of problems!</string>
|
||||
<string name="title_pro_hide">Hide small message for %1$d weeks</string>
|
||||
<string name="title_pro_hint">Buying pro features will allow you to use all current and future pro features, will keep this app maintained, and supported.</string>
|
||||
<string name="title_pro_price">Why are the pro features so expensive?</string>
|
||||
|
|
Loading…
Reference in New Issue