summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDanny Epstein <depstein@google.com>2015-10-20 10:04:27 -0700
committerDanny Epstein <depstein@google.com>2015-10-20 15:15:42 -0700
commit51f646b19dfbe663fcd2ea78d10fd2813c4d20f8 (patch)
treec976848787f4183609b9a32f48fd1fc0fd5a6d69 /src
parentdc40bd77b1ab709de9d705c88f56ff61d618ed5c (diff)
downloadandroid_packages_apps_PackageInstaller-51f646b19dfbe663fcd2ea78d10fd2813c4d20f8.tar.gz
android_packages_apps_PackageInstaller-51f646b19dfbe663fcd2ea78d10fd2813c4d20f8.tar.bz2
android_packages_apps_PackageInstaller-51f646b19dfbe663fcd2ea78d10fd2813c4d20f8.zip
Reduce the top padding when message isn't at top.
If either the page number or an icon is shown above the message, reduce the top padding on round screens. Bug: 24961379 Change-Id: Iec9193e3bbdd8ac607743cd0010f2331edbebc81
Diffstat (limited to 'src')
-rw-r--r--src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java b/src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java
index abaf3e48..adc831d8 100644
--- a/src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java
+++ b/src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java
@@ -189,7 +189,8 @@ public abstract class ConfirmationViewHandler implements
// In order to fake the buttons peeking at the bottom, need to do set the
// padding properly.
if (mContent.getPaddingBottom() != mButtonBarContainer.getHeight()) {
- mContent.setPadding(0, mContent.getPaddingTop(), 0, mButtonBarContainer.getHeight());
+ mContent.setPadding(mContent.getPaddingLeft(), mContent.getPaddingTop(),
+ mContent.getPaddingRight(), mButtonBarContainer.getHeight());
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, " set mContent.PaddingBottom: " + mButtonBarContainer.getHeight());
}