summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2015-07-27 16:09:56 +0200
committerMartijn Coenen <maco@google.com>2015-07-28 16:37:39 +0200
commitb637ba08ad9fb106011392fa1688e51028007ec2 (patch)
tree246bad68a7c42d1f3372b841e0c7751e984d7609
parente21573da9205343e5b531f468b534a1bf02098fe (diff)
downloadpackages_apps_Settings-b637ba08ad9fb106011392fa1688e51028007ec2.tar.gz
packages_apps_Settings-b637ba08ad9fb106011392fa1688e51028007ec2.tar.bz2
packages_apps_Settings-b637ba08ad9fb106011392fa1688e51028007ec2.zip
Fix tap & pay strings.
Bug: 22534220 Bug: 22762332 Change-Id: Ifd98a6cf0490b6dd59cc6a0957db45509d6fd1d7
-rw-r--r--res/values/strings.xml18
-rw-r--r--src/com/android/settings/nfc/NfcForegroundPreference.java13
2 files changed, 10 insertions, 21 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 441dbbd94..752958b9d 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -5591,29 +5591,25 @@
<!-- 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 shown when there are no NFC payment applications installed -->
- <string name="nfc_payment_no_apps">Use Tap &amp; 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 -->
<string name="nfc_payment_default">Payment default</string>
<!-- Summary text that is shown when no default app is set -->
<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 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 -->
- <string name="nfc_payment_open_app">If open app supports Tap &amp; pay</string>
+ <!-- Header for what to do when the open app supports TapPay: use the default set app, or the open app -->
+ <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 -->
- <string name="nfc_payment_favor_open">Use that app instead of <xliff:g id="app">%1$s</xliff:g></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>
+ <string name="nfc_payment_favor_open">Except when another payment app is open</string>
<!-- Header for a dialog asking the user which payment app to use -->
<string name="nfc_payment_pay_with">At a Tap &amp; pay terminal, pay with:</string>
<!-- 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>
<!-- 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 &amp; pay app and your phone is powered on, tap your phone on any terminal with the Tap &amp; 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 -->
<string name="nfc_how_it_works_got_it">Got it</string>
<!-- NFC More... title. [CHAR LIMIT=40] -->
diff --git a/src/com/android/settings/nfc/NfcForegroundPreference.java b/src/com/android/settings/nfc/NfcForegroundPreference.java
index 4f4398f3f..8ee5535ae 100644
--- a/src/com/android/settings/nfc/NfcForegroundPreference.java
+++ b/src/com/android/settings/nfc/NfcForegroundPreference.java
@@ -40,19 +40,12 @@ public class NfcForegroundPreference extends DropDownPreference implements
PaymentBackend.PaymentAppInfo defaultApp = mPaymentBackend.getDefaultApp();
boolean foregroundMode = mPaymentBackend.isForegroundMode();
setPersistent(false);
- setTitle(getContext().getString(R.string.nfc_payment_open_app));
+ setTitle(getContext().getString(R.string.nfc_payment_use_default));
CharSequence favorOpen;
CharSequence favorDefault;
clearItems();
- if (defaultApp == null) {
- favorOpen = getContext().getString(R.string.nfc_payment_favor_open_default_unknown);
- 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);
+ addItem(getContext().getString(R.string.nfc_payment_favor_open), true);
+ addItem(getContext().getString(R.string.nfc_payment_favor_default), false);
if (foregroundMode) {
setSelectedValue(true);
} else {