summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2015-07-06 18:17:34 -0700
committerJim Miller <jaggies@google.com>2015-07-07 15:49:05 -0700
commitc90d64583c741a99bc8a747866352b5c212b5ee1 (patch)
tree15c831347b57becc9ed6b178c5485e3c0b3d608f /packages/Keyguard/src
parent441fc0fc68140368d5438a6eb5b896b4a9d6ad4e (diff)
downloadframeworks_base-c90d64583c741a99bc8a747866352b5c212b5ee1.zip
frameworks_base-c90d64583c741a99bc8a747866352b5c212b5ee1.tar.gz
frameworks_base-c90d64583c741a99bc8a747866352b5c212b5ee1.tar.bz2
Use custom theme for keyguard presentation
The default Material theme for presentations on external displays has a white background. This changes keyguard to use a custom theme since we want white lettering on black. Fixes bug 22305037 Change-Id: Idc6aca2398be34c4603446983e5d276abcace001
Diffstat (limited to 'packages/Keyguard/src')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardDisplayManager.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardDisplayManager.java b/packages/Keyguard/src/com/android/keyguard/KeyguardDisplayManager.java
index 55f965c..8de1d31 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardDisplayManager.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardDisplayManager.java
@@ -105,7 +105,8 @@ public class KeyguardDisplayManager {
if (mPresentation == null && presentationDisplay != null) {
if (DEBUG) Slog.i(TAG, "Keyguard enabled on display: " + presentationDisplay);
- mPresentation = new KeyguardPresentation(mContext, presentationDisplay);
+ mPresentation = new KeyguardPresentation(mContext, presentationDisplay,
+ R.style.keyguard_presentation_theme);
mPresentation.setOnDismissListener(mOnDismissListener);
try {
mPresentation.show();
@@ -141,11 +142,12 @@ public class KeyguardDisplayManager {
}
};
- public KeyguardPresentation(Context context, Display display) {
- super(context, display);
+ public KeyguardPresentation(Context context, Display display, int theme) {
+ super(context, display, theme);
getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
}
+ @Override
public void onDetachedFromWindow() {
mClock.removeCallbacks(mMoveTextRunnable);
}