Refactoring

This commit is contained in:
M66B
2019-02-07 19:49:14 +00:00
parent 9b475c2e2e
commit f53a308db3
4 changed files with 15 additions and 15 deletions

View File

@@ -101,7 +101,7 @@ abstract class ActivityBilling extends ActivityBase implements PurchasesUpdatedL
try {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(BuildConfig.PRO_FEATURES + "?challenge=" + getChallenge()));
intent.setData(Uri.parse(BuildConfig.PRO_FEATURES_URI + "?challenge=" + getChallenge()));
return intent;
} catch (NoSuchAlgorithmException ex) {
Log.e(ex);

View File

@@ -806,7 +806,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
private Intent getIntentInvite() {
StringBuilder sb = new StringBuilder();
sb.append(getString(R.string.title_try)).append("\n\n");
sb.append(BuildConfig.INVITE_LINK).append("\n\n");
sb.append(BuildConfig.INVITE_URI).append("\n\n");
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");

View File

@@ -53,7 +53,7 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
btnPurchase = view.findViewById(R.id.btnPurchase);
tvPrice = view.findViewById(R.id.tvPrice);
tvList.setText(Html.fromHtml("<a href=\"" + BuildConfig.PRO_FEATURES + "\">" + Html.escapeHtml(getString(R.string.title_pro_list)) + "</a>"));
tvList.setText(Html.fromHtml("<a href=\"" + BuildConfig.PRO_FEATURES_URI + "\">" + Html.escapeHtml(getString(R.string.title_pro_list)) + "</a>"));
tvList.setMovementMethod(LinkMovementMethod.getInstance());
btnPurchase.setOnClickListener(new View.OnClickListener() {