Browse Source

Added reference to FAQ about pro features price

main
M66B 6 years ago
parent
commit
01137d38bb
3 changed files with 15 additions and 0 deletions
  1. +4
    -0
      app/src/main/java/eu/faircode/email/FragmentPro.java
  2. +10
    -0
      app/src/main/res/layout/fragment_pro.xml
  3. +1
    -0
      app/src/main/res/values/strings.xml

+ 4
- 0
app/src/main/java/eu/faircode/email/FragmentPro.java View File

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


+ 10
- 0
app/src/main/res/layout/fragment_pro.xml View File

@ -46,5 +46,15 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnPurchase" /> 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> </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView> </ScrollView>

+ 1
- 0
app/src/main/res/values/strings.xml View File

@ -227,6 +227,7 @@
<string name="title_pro_list">List of pro features</string> <string name="title_pro_list">List of pro features</string>
<string name="title_pro_purchase">Buy</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_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_activated">All pro features are activated</string>
<string name="title_pro_valid">All pro features activated</string> <string name="title_pro_valid">All pro features activated</string>
<string name="title_pro_invalid">Invalid response</string> <string name="title_pro_invalid">Invalid response</string>


Loading…
Cancel
Save