am 8e7b9cf9
: Merge "Fix tap & pay strings." into mnc-dev
* commit '8e7b9cf9f67344192de98c951c11f144d1cdcd13': Fix tap & pay strings.
This commit is contained in:
@@ -5588,29 +5588,25 @@
|
|||||||
<!-- Caption for button linking to a page explaining how Tap and Pay works-->
|
<!-- Caption for button linking to a page explaining how Tap and Pay works-->
|
||||||
<string name="nfc_payment_how_it_works">How it works</string>
|
<string name="nfc_payment_how_it_works">How it works</string>
|
||||||
<!-- String shown when there are no NFC payment applications installed -->
|
<!-- String shown when there are no NFC payment applications installed -->
|
||||||
<string name="nfc_payment_no_apps">Use Tap & pay to make in-store purchases</string>
|
<string name="nfc_payment_no_apps">Pay with your phone in stores</string>
|
||||||
<!-- Header text that can be clicked on to change the default payment app -->
|
<!-- Header text that can be clicked on to change the default payment app -->
|
||||||
<string name="nfc_payment_default">Payment default</string>
|
<string name="nfc_payment_default">Payment default</string>
|
||||||
<!-- Summary text that is shown when no default app is set -->
|
<!-- Summary text that is shown when no default app is set -->
|
||||||
<string name="nfc_payment_default_not_set">Not set</string>
|
<string name="nfc_payment_default_not_set">Not set</string>
|
||||||
<!-- String indicating the label of the default payment app and a description of its state; eg Google Wallet - MasterCard 1234 -->
|
<!-- String indicating the label of the default payment app and a description of its state; eg Google Wallet - MasterCard 1234 -->
|
||||||
<string name="nfc_payment_app_and_desc"><xliff:g id="app">%1$s</xliff:g> - <xliff:g id="description">%2$s</xliff:g></string>
|
<string name="nfc_payment_app_and_desc"><xliff:g id="app">%1$s</xliff:g> - <xliff:g id="description">%2$s</xliff:g></string>
|
||||||
<!-- Header for action to choose when the open app supports TapPay -->
|
<!-- Header for what to do when the open app supports TapPay: use the default set app, or the open app -->
|
||||||
<string name="nfc_payment_open_app">If open app supports Tap & pay</string>
|
<string name="nfc_payment_use_default">Use default</string>
|
||||||
|
<!-- Always use the default app (independent of what app is open) -->
|
||||||
|
<string name="nfc_payment_favor_default">Always</string>
|
||||||
<!-- If open app supports TapPay, use that app instead of the default -->
|
<!-- If open app supports TapPay, use that app instead of the default -->
|
||||||
<string name="nfc_payment_favor_open">Use that app instead of <xliff:g id="app">%1$s</xliff:g></string>
|
<string name="nfc_payment_favor_open">Except when another payment app is open</string>
|
||||||
<!-- If open app supports TapPay, use that app instead of the default (name of default app unknown) -->
|
|
||||||
<string name="nfc_payment_favor_open_default_unknown">Use that app instead</string>
|
|
||||||
<!-- If open app supports TapPay, still use the default app -->
|
|
||||||
<string name="nfc_payment_favor_default">Still use <xliff:g id="app">%1$s</xliff:g></string>
|
|
||||||
<!-- If open app supports TapPay, still use the default app (name of default app unknown) -->
|
|
||||||
<string name="nfc_payment_favor_default_default_unknown">Still use default</string>
|
|
||||||
<!-- Header for a dialog asking the user which payment app to use -->
|
<!-- Header for a dialog asking the user which payment app to use -->
|
||||||
<string name="nfc_payment_pay_with">At a Tap & pay terminal, pay with:</string>
|
<string name="nfc_payment_pay_with">At a Tap & pay terminal, pay with:</string>
|
||||||
<!-- Header for text explaning how to pay at a payment terminal in a store -->
|
<!-- Header for text explaning how to pay at a payment terminal in a store -->
|
||||||
<string name="nfc_how_it_works_title">Paying at the terminal</string>
|
<string name="nfc_how_it_works_title">Paying at the terminal</string>
|
||||||
<!-- Content for text explaning how to pay at a payment terminal in a store -->
|
<!-- Content for text explaning how to pay at a payment terminal in a store -->
|
||||||
<string name="nfc_how_it_works_content">Once you\u2019ve set up a Tap & pay app and your phone is powered on, tap your phone on any terminal with the Tap & pay logo on it to make a purchase.</string>
|
<string name="nfc_how_it_works_content">Set up a payment app. Then just hold the back of your phone up to any terminal with the contactless symbol.</string>
|
||||||
<!-- Button the user can click to indicate he understood and dismiss the screen -->
|
<!-- Button the user can click to indicate he understood and dismiss the screen -->
|
||||||
<string name="nfc_how_it_works_got_it">Got it</string>
|
<string name="nfc_how_it_works_got_it">Got it</string>
|
||||||
<!-- NFC More... title. [CHAR LIMIT=40] -->
|
<!-- NFC More... title. [CHAR LIMIT=40] -->
|
||||||
|
@@ -40,19 +40,12 @@ public class NfcForegroundPreference extends DropDownPreference implements
|
|||||||
PaymentBackend.PaymentAppInfo defaultApp = mPaymentBackend.getDefaultApp();
|
PaymentBackend.PaymentAppInfo defaultApp = mPaymentBackend.getDefaultApp();
|
||||||
boolean foregroundMode = mPaymentBackend.isForegroundMode();
|
boolean foregroundMode = mPaymentBackend.isForegroundMode();
|
||||||
setPersistent(false);
|
setPersistent(false);
|
||||||
setTitle(getContext().getString(R.string.nfc_payment_open_app));
|
setTitle(getContext().getString(R.string.nfc_payment_use_default));
|
||||||
CharSequence favorOpen;
|
CharSequence favorOpen;
|
||||||
CharSequence favorDefault;
|
CharSequence favorDefault;
|
||||||
clearItems();
|
clearItems();
|
||||||
if (defaultApp == null) {
|
addItem(getContext().getString(R.string.nfc_payment_favor_open), true);
|
||||||
favorOpen = getContext().getString(R.string.nfc_payment_favor_open_default_unknown);
|
addItem(getContext().getString(R.string.nfc_payment_favor_default), false);
|
||||||
favorDefault = getContext().getString(R.string.nfc_payment_favor_default_default_unknown);
|
|
||||||
} else {
|
|
||||||
favorOpen = getContext().getString(R.string.nfc_payment_favor_open, defaultApp.label);
|
|
||||||
favorDefault = getContext().getString(R.string.nfc_payment_favor_default, defaultApp.label);
|
|
||||||
}
|
|
||||||
addItem(favorOpen.toString(), true);
|
|
||||||
addItem(favorDefault.toString(), false);
|
|
||||||
if (foregroundMode) {
|
if (foregroundMode) {
|
||||||
setSelectedValue(true);
|
setSelectedValue(true);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user