diff options
author | Evan Severson <evanseverson@google.com> | 2019-04-17 10:51:33 -0700 |
---|---|---|
committer | Evan Severson <evanseverson@google.com> | 2019-04-23 11:08:02 -0700 |
commit | c04ff2e3f25b4c2bafd2098a99f634f3f23e0185 (patch) | |
tree | a8f8ff6c197c859c3127a4326b92169b097d17c9 /res/values/themes.xml | |
parent | 1a16b978631d6455e1dabf215e89742a376dc81d (diff) | |
download | android_packages_apps_PackageInstaller-c04ff2e3f25b4c2bafd2098a99f634f3f23e0185.tar.gz android_packages_apps_PackageInstaller-c04ff2e3f25b4c2bafd2098a99f634f3f23e0185.tar.bz2 android_packages_apps_PackageInstaller-c04ff2e3f25b4c2bafd2098a99f634f3f23e0185.zip |
Make it so that the grant dialog's position can be changed
The vertical position of a floating window is unable to be
changed so now we have the window occupy the entire screen
and add a new layout inside the scrollview so that position
can be set.
Doing this made animations for the dialog vanish, probably
because the root is now transparent. So animations had to
be added for the dialog.
This also fixes the weird behavior where scrolling the dialog
was inside the bounds of the rounded rectangle. Now the whole
dialog moves as a single rectangle and can scroll off screen.
Bug: 120435328
Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
Looked at dark theme, various display sizes, font sizes,
landscape, portrait. All cases looked the same as before
Change-Id: I1d85d89711f9e5404d2eeeb60f77d77c5eb01340
Diffstat (limited to 'res/values/themes.xml')
-rw-r--r-- | res/values/themes.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/values/themes.xml b/res/values/themes.xml index a64d7d34..3eb00b4e 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -45,6 +45,7 @@ <style name="GrantPermissions" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"> <item name="android:windowNoTitle">true</item> + <item name="android:windowBackground">@android:color/transparent</item> <!-- The following attributes change the behavior of the dialog, hence they should not be themed --> <item name="android:windowIsTranslucent">true</item> |