Refine NFC settings UX
Adjust notification string when selecting a work app. Use NFC banner instead of app icon. Bug: 202367033 Test: manual Change-Id: I4f1094b8d48bb60716a2bf648dff593186d707aa
This commit is contained in:
@@ -7639,8 +7639,8 @@
|
||||
<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>
|
||||
<!-- Text string in the dialog [CHAR LIMIT=80] -->
|
||||
<string name="nfc_default_payment_workapp_confirmation_message_2">you\u2019ll need to enter your work PIN, pattern, or password 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>
|
||||
|
@@ -133,7 +133,9 @@ public class PaymentBackend {
|
||||
appInfo.settingsComponent = null;
|
||||
}
|
||||
appInfo.description = service.getDescription();
|
||||
appInfo.icon = pm.getUserBadgedIcon(service.loadIcon(pm), appInfo.userHandle);
|
||||
Drawable icon = (service.loadBanner(pm) != null)
|
||||
? service.loadBanner(pm) : service.loadIcon(pm);
|
||||
appInfo.icon = pm.getUserBadgedIcon(icon, appInfo.userHandle);
|
||||
|
||||
appInfos.add(appInfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user