From c4d9d21009db7b977a2201f6760d78786be3028d Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Sun, 6 Sep 2009 22:12:28 -0700 Subject: [PATCH] Tweak so lock screen wallpaper is aligned with real wallpaper. Change-Id: Iee117ae1496c0c4e9d12d16eeba69bcad351a57a --- .../internal/policy/impl/LockPatternKeyguardView.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/policy/com/android/internal/policy/impl/LockPatternKeyguardView.java b/policy/com/android/internal/policy/impl/LockPatternKeyguardView.java index 332d58061371c..8474b9c913efe 100644 --- a/policy/com/android/internal/policy/impl/LockPatternKeyguardView.java +++ b/policy/com/android/internal/policy/impl/LockPatternKeyguardView.java @@ -582,8 +582,10 @@ public class LockPatternKeyguardView extends KeyguardViewBase { } /** - * Used to put wallpaper on the background of the lock screen. Centers it Horizontally and - * vertically. + * Used to put wallpaper on the background of the lock screen. Centers it + * Horizontally and pins the bottom (assuming that the lock screen is aligned + * with the bottom, so the wallpaper should extend above the top into the + * status bar). */ static private class FastBitmapDrawable extends Drawable { private Bitmap mBitmap; @@ -599,7 +601,7 @@ public class LockPatternKeyguardView extends KeyguardViewBase { canvas.drawBitmap( mBitmap, (getBounds().width() - mBitmap.getWidth()) / 2, - (getBounds().height() - mBitmap.getHeight()) / 2, + (getBounds().height() - mBitmap.getHeight()), null); }