From 1e9a9cdec4eef63a1ec4dc7f6a9bf0ac1bf9b534 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Wed, 9 Feb 2022 21:49:28 +0800 Subject: [PATCH] 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 --- res/values/strings.xml | 4 ++-- src/com/android/settings/nfc/PaymentBackend.java | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 5cbdb603804..5a8e233d421 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7639,8 +7639,8 @@ To make a payment using a work app: work profile must be turned on. - - you\u2019ll need to enter your work profile lock if you have one. + + you\u2019ll need to enter your work PIN, pattern, or password if you have one. How it works diff --git a/src/com/android/settings/nfc/PaymentBackend.java b/src/com/android/settings/nfc/PaymentBackend.java index 0cfed201e9c..021d673e152 100644 --- a/src/com/android/settings/nfc/PaymentBackend.java +++ b/src/com/android/settings/nfc/PaymentBackend.java @@ -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); }