New UX for the NFC default payment settings

Re-design the UX.

Bug: 202367033
Test: maunal
      make RunSettingsRoboTests ROBOTEST_FILTER=NfcForegroundPreferenceControllerTest
      make RunSettingsRoboTests ROBOTEST_FILTER=PaymentSettingsTest
Change-Id: I4c05ac4a1974645c76a37900d64aa8e1a491bca1
This commit is contained in:
Jack Yu
2022-01-04 17:40:55 +08:00
parent 8662e4642e
commit 9de30f08e6
11 changed files with 540 additions and 79 deletions

View File

@@ -1596,4 +1596,15 @@
<item>2</item>
<item>4</item>
</string-array>
<!-- All the preference when the open app supports TapPay -->
<string-array name="nfc_payment_favor">
<item>Always</item>
<item>Except when another payment app is open</item>
</string-array>
<!-- All the values of the preference when the open app supports TapPay -->
<string-array name="nfc_payment_favor_values">
<item>0</item>
<item>1</item>
</string-array>
</resources>

View File

@@ -7596,7 +7596,25 @@
<string name="user_copy_apps_menu_title">Install available apps</string>
<!-- NFC payment settings --><skip/>
<!-- Title for NFC payment settings page [CHAR LIMIT=40] -->
<string name="nfc_payment_settings_title">Contactless payments</string>
<!-- Title for NFC default payment settings page [CHAR LIMIT=40] -->
<string name="nfc_default_payment_settings_title">Default payment app</string>
<!-- Text string explaining how Tap and Pay works [CHAR LIMIT=100] -->
<string name="nfc_default_payment_footer">To make a payment using a payment app, hold the back of your device to a payment terminal</string>
<!-- Text string linking to a page explaining how Tap and Pay works [CHAR LIMIT=40] -->
<string name="nfc_more_details">Learn more</string>
<!-- Strings shown in a dialog when a user tries to set a work app as a nfc default payment app --><skip/>
<!-- Title for the dialog [CHAR LIMIT=40] -->
<string name="nfc_default_payment_workapp_confirmation_title">Set work app as default payment app?</string>
<!-- Header text for the dialog [CHAR LIMIT=40] -->
<string name="nfc_default_payment_workapp_confirmation_message_title">To make a payment using a work app:</string>
<!-- Text string in the dialog [CHAR LIMIT=60] -->
<string name="nfc_default_payment_workapp_confirmation_message_1">work profile must be turned on.</string>
<!-- Text string in the dialog [CHAR LIMIT=60] -->
<string name="nfc_default_payment_workapp_confirmation_message_2">you\u2019ll need to enter your work profile lock if you have one.</string>
<!-- 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 -->
@@ -7608,7 +7626,9 @@
<!-- 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 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>
<string name="nfc_payment_use_default">Use default payment app</string>
<!-- Header for a dialog asking what to do when the open app supports TapPay [CHAR LIMIT=40] -->
<string name="nfc_payment_use_default_dialog">Use default payment app</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 -->