Commit 0d7b74a3 authored by Becky Zhou's avatar Becky Zhou Committed by Commit Bot

Filter focus for buttons when there are overlays on top

Bug: 902427
Change-Id: Ida893cf41478976f4d3784091a79385db69ef1f0
Reviewed-on: https://chromium-review.googlesource.com/c/1324450Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606212}
parent cf6127a3
...@@ -68,6 +68,8 @@ public class PermissionDialogView { ...@@ -68,6 +68,8 @@ public class PermissionDialogView {
/* Shows the dialog */ /* Shows the dialog */
public void show() { public void show() {
mDialog.show(); mDialog.show();
getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true);
getButton(DialogInterface.BUTTON_NEGATIVE).setFilterTouchesWhenObscured(true);
} }
/* Dismiss the dialog */ /* Dismiss the dialog */
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<item name="android:focusable">true</item> <item name="android:focusable">true</item>
<item name="android:clickable">true</item> <item name="android:clickable">true</item>
<item name="android:gravity">center_vertical|center_horizontal</item> <item name="android:gravity">center_vertical|center_horizontal</item>
<item name="android:filterTouchesWhenObscured">true</item>
</style> </style>
<style name="FilledButton" parent="ButtonCompatBase" tools:ignore="UnusedResources"> <style name="FilledButton" parent="ButtonCompatBase" tools:ignore="UnusedResources">
<item name="android:paddingStart">24dp</item> <item name="android:paddingStart">24dp</item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment