Skip to content
Commit a4b5e968 authored by Robert Horvath's avatar Robert Horvath
Browse files

PackageInstaller: Initial focus in non-touch mode on Cancel

The initial focus for AlertDialogs in non-touch mode is the positive
button. However, in the PackageInstaller confirmation dialog, the
positive button is initially disabled to prevent tap jacking.
To provide users in non-touch mode with a sensible default focus, put
initial focus in non-touch mode on the cancel button.

Bug: 152026824
Test: On Android TV, with a remote:
      1. Install file explorer app
      2. Push another apk to device
      3. Use file explorer to start apk installation
      4. Verify "Cancel" button is focused
Test: Doing the above with touch does not lead to any visible focus
Change-Id: Iafec25df23c45171c450f5f42cc5da9bf0087ae4
parent 711ba268
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment