Only show smart actions for whitelisted apps in lock task mode.
In lock task mode only apps from a specific whitelist can be started. To avoid showing buttons that won't do anything when clicked we remove smart actions linking to apps that are not whitelisted. In this change we add several IPC calls during smart suggestions (in notification) inflation - one in the common code flow, and several others only for the case where lock task kiosk mode is enabled. This is OK from a performance perspective because we inflate smart suggestions on a background thread. Bug: 117976013 Test: atest InflatedSmartRepliesTest Test: start lock-task mode with 1. chrome whitelisted -> chrome actions show up, 2. chrome not whitelisted -> chrome actions don't show up. Test: ensure smart replies are still enabled in lock task mode. Change-Id: I664ff2cdcfd1b212744d85d36d7a2b305bf4b3a9
Loading
Please register or sign in to comment