1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00

Added reference to FAQ about pro features price

This commit is contained in:
M66B 2018-09-13 07:15:56 +00:00
parent d8a7b922a4
commit 01137d38bb
3 changed files with 15 additions and 0 deletions

View file

@ -39,6 +39,7 @@ public class FragmentPro extends FragmentEx implements SharedPreferences.OnShare
private TextView tvActivated;
private TextView tvList;
private Button btnPurchase;
private TextView tvPrice;
@Override
@Nullable
@ -50,6 +51,7 @@ public class FragmentPro extends FragmentEx implements SharedPreferences.OnShare
tvActivated = view.findViewById(R.id.tvActivated);
tvList = view.findViewById(R.id.tvList);
btnPurchase = view.findViewById(R.id.btnPurchase);
tvPrice = view.findViewById(R.id.tvPrice);
tvList.setText(Html.fromHtml("<a href=\"https://email.faircode.eu/#pro\">" + Html.escapeHtml(getString(R.string.title_pro_list)) + "</a>"));
tvList.setMovementMethod(LinkMovementMethod.getInstance());
@ -65,6 +67,8 @@ public class FragmentPro extends FragmentEx implements SharedPreferences.OnShare
}
});
tvPrice.setMovementMethod(LinkMovementMethod.getInstance());
return view;
}

View file

@ -46,5 +46,15 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnPurchase" />
<TextView
android:id="@+id/tvPrice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_pro_price"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvHint" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>

View file

@ -227,6 +227,7 @@
<string name="title_pro_list">List of pro features</string>
<string name="title_pro_purchase">Buy</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">Please see <a href="https://github.com/M66B/open-source-email/blob/master/FAQ.md#FAQ19">this FAQ</a> about the price of the pro features</string>
<string name="title_pro_activated">All pro features are activated</string>
<string name="title_pro_valid">All pro features activated</string>
<string name="title_pro_invalid">Invalid response</string>