diff options
author | Jim Miller <jaggies@google.com> | 2011-11-08 19:50:49 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2011-11-14 14:09:05 -0800 |
commit | faed16030df5221f790a4d6fd5bdfb592db977fa (patch) | |
tree | 8ab0bdbacf48fe20eb9431a2a200ee39e4085611 /policy | |
parent | 258576a82c2293c3a988bf2dc6744fd8082421f9 (diff) | |
download | frameworks_base-faed16030df5221f790a4d6fd5bdfb592db977fa.zip frameworks_base-faed16030df5221f790a4d6fd5bdfb592db977fa.tar.gz frameworks_base-faed16030df5221f790a4d6fd5bdfb592db977fa.tar.bz2 |
Fix 5579440: Add transport control view to tablet unlock screens
This updated tablet layouts to support showing album art and transport
control views in PIN, pattern and password screens of lock screen.
It also allows the addition of a background protect asset and
the ability to show the system wallpaper on layouts that define a
transport_bg_protect view.
Also updated layout to use new ICS-style buttons on lock screen and
fixed bug with "forgot pattern" button where we were showing the
emergency call icon.
To avoid problems with leading ones in the mono-space clock font,
we now right-justify status text on tablet and remove the AM/PM
indicator.
Status font size adjusted by UX.
Added background protection drop shadow to transport control.
Fixed portrait mode to be right-justified when transport is showing.
Change-Id: I790292fc39f4588f87adc9d9241706817ae6baab
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java b/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java index 0f21bdb..dd3b75d 100644 --- a/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java +++ b/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java @@ -244,8 +244,14 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler // TODO: examine all widgets to derive clock status mUpdateMonitor.reportClockVisible(false); - // TODO: We should disable the wallpaper instead - setBackgroundColor(0xff000000); + // If there's not a bg protection view containing the transport, then show a black + // background. Otherwise, allow the normal background to show. + if (findViewById(R.id.transport_bg_protect) == null) { + // TODO: We should disable the wallpaper instead + setBackgroundColor(0xff000000); + } else { + resetBackground(); + } } public void requestHide(View view) { |