diff options
author | Martijn Coenen <maco@google.com> | 2015-07-27 16:09:56 +0200 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2015-07-28 16:37:39 +0200 |
commit | b637ba08ad9fb106011392fa1688e51028007ec2 (patch) | |
tree | 246bad68a7c42d1f3372b841e0c7751e984d7609 /src/com/android/settings | |
parent | e21573da9205343e5b531f468b534a1bf02098fe (diff) | |
download | packages_apps_Settings-b637ba08ad9fb106011392fa1688e51028007ec2.zip packages_apps_Settings-b637ba08ad9fb106011392fa1688e51028007ec2.tar.gz packages_apps_Settings-b637ba08ad9fb106011392fa1688e51028007ec2.tar.bz2 |
Fix tap & pay strings.
Bug: 22534220
Bug: 22762332
Change-Id: Ifd98a6cf0490b6dd59cc6a0957db45509d6fd1d7
Diffstat (limited to 'src/com/android/settings')
-rw-r--r-- | src/com/android/settings/nfc/NfcForegroundPreference.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/com/android/settings/nfc/NfcForegroundPreference.java b/src/com/android/settings/nfc/NfcForegroundPreference.java index 4f4398f..8ee5535 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 { |