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:
Jack Yu
2022-02-09 21:49:28 +08:00
parent a2781721e2
commit 1e9a9cdec4
2 changed files with 5 additions and 3 deletions

View File

@@ -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);
}