OSDN Git Service

Add top and bottom panel overlay to lists in AlertDialog for watch.
authorMichael Kwan <mkwan@google.com>
Fri, 22 Jul 2016 19:17:04 +0000 (12:17 -0700)
committerMichael Kwan <mkwan@google.com>
Fri, 22 Jul 2016 20:04:42 +0000 (13:04 -0700)
commit55e4030f77d5e66fc9616806f4c82434602369f1
tree122ba08f66492cf47abc2125e2d7dcb5e661207c
parentc3bdde97900461b81a5657074ffb635bda2dc8a7
Add top and bottom panel overlay to lists in AlertDialog for watch.

For watch devices, AlertDialogs added the title and button bar as header and
footer views in the ListView. This broke compatibility, hence a solution to
overlay the panels instead with a wrapper layout.

Bug: 27482353
Bug: 30075032
Bug: 29833395
Bug: 29277843

Change-Id: I2ecbe56ae8f7d7e99c7ca2dad2a2092499212199
core/java/com/android/internal/app/AlertController.java
core/java/com/android/internal/app/MicroAlertController.java
core/java/com/android/internal/widget/WatchListDecorLayout.java [new file with mode: 0644]
core/res/res/layout-watch/alert_dialog_material.xml