diff options
author | Mark Renouf <mrenouf@google.com> | 2014-11-13 18:58:59 -0500 |
---|---|---|
committer | Mark Renouf <mrenouf@google.com> | 2014-11-13 19:12:55 -0500 |
commit | de7187b95641ad364c71cacf08749032cbddf013 (patch) | |
tree | c83304a57defefc124477fcf4833ce760b21d11b /core/res | |
parent | 4cc7bbc9fd937c6f25962fd6971e77773114aff2 (diff) | |
download | frameworks_base-de7187b95641ad364c71cacf08749032cbddf013.zip frameworks_base-de7187b95641ad364c71cacf08749032cbddf013.tar.gz frameworks_base-de7187b95641ad364c71cacf08749032cbddf013.tar.bz2 |
Sets windowOverscan for all Wear DeviceDefault themes.
Without this flag, window insets will be consumed by the first View
which does not explicitly override onApplyWindowInsets. This is either
SwipeDismissLayout or the content view of the activity (if swipeDismiss
is not enabled).
BUG: 18376451
Change-Id: I5e590bad9810a9a232a6c318f715d587a3290f34
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/values/themes_micro.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/res/res/values/themes_micro.xml b/core/res/res/values/themes_micro.xml index f1bc5da..1ebc708 100644 --- a/core/res/res/values/themes_micro.xml +++ b/core/res/res/values/themes_micro.xml @@ -28,6 +28,8 @@ to work properly. --> <item name="windowIsTranslucent">true</item> <item name="windowSwipeToDismiss">true</item> + <!-- Required to force windowInsets dispatch through application UI. --> + <item name="windowOverscan">true</item> </style> <style name="Theme.Micro.Light" parent="Theme.Holo.Light.NoActionBar"> @@ -44,6 +46,8 @@ to work properly. --> <item name="windowIsTranslucent">true</item> <item name="windowSwipeToDismiss">true</item> + <!-- Required to force windowInsets dispatch through application UI. --> + <item name="windowOverscan">true</item> </style> <style name="Theme.Micro.Dialog" parent="Theme.Holo.Light.Dialog"> @@ -52,6 +56,8 @@ <item name="windowFullscreen">true</item> <item name="textAppearance">@style/TextAppearance.Micro</item> <item name="textAppearanceInverse">@style/TextAppearance.Micro</item> + <!-- Required to force windowInsets dispatch through application UI. --> + <item name="windowOverscan">true</item> </style> <style name="Theme.Micro.Dialog.Alert"> |