Minor addition strings format
This commit is contained in:
parent
7487cda2c3
commit
294bc53ecd
2 changed files with 8 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
|||
<string name="troubleshooting_description">Please follow this link if you any issues with purchases.</string>
|
||||
<string name="troubleshooting">Troubleshooting</string>
|
||||
<string name="contact_support">Contact support</string>
|
||||
<string name="empty_purchases_description">If your purchases don\'t show up here, tap on “Restore purchases”, or contact our support team.</string>
|
||||
<string name="empty_purchases_description">If your purchases don\'t show up here, tap on “%1$s”, or contact our support team.</string>
|
||||
<string name="contact_support_description">If you have any questions, please contact us at %1$s.</string>
|
||||
<string name="new_device_account">New device / new account</string>
|
||||
<string name="no_purchases">You don\'t have any purchases</string>
|
||||
|
|
|
@ -122,7 +122,7 @@ public class PurchasesFragment extends BaseOsmAndFragment {
|
|||
}
|
||||
});
|
||||
|
||||
setFormatLink();
|
||||
setFormatStrings();
|
||||
return mainView;
|
||||
}
|
||||
|
||||
|
@ -215,9 +215,14 @@ public class PurchasesFragment extends BaseOsmAndFragment {
|
|||
appbar.addView(toolbar);
|
||||
}
|
||||
|
||||
public void setFormatLink() {
|
||||
public void setFormatStrings() {
|
||||
TextView contactSupportLink = mainView.findViewById(R.id.contact_support_title);
|
||||
TextView supportDescription = mainView.findViewById(R.id.support_link_title);
|
||||
TextView infoDescription = mainView.findViewById(R.id.info_description);
|
||||
|
||||
String restorePurchases = getString(R.string.restore_purchases);
|
||||
String infoPurchases = String.format(getString(R.string.empty_purchases_description), restorePurchases);
|
||||
infoDescription.setText(infoPurchases);
|
||||
|
||||
SpannableString spannableStringSupport = new SpannableString(getString(R.string.contact_support));
|
||||
String urlSupport = "mailto:support@osmand.net";
|
||||
|
|
Loading…
Reference in a new issue