am 53a1bd9f: am 3ed4564c: am 0fd69144: am e86f1752: Merge "Use custom theme for keyguard presentation" into mnc-dev

* commit '53a1bd9f932c16d90fa4ece89c1fcf5a532c1766':
  Use custom theme for keyguard presentation
This commit is contained in:
Jim Miller
2015-07-08 01:39:21 +00:00
committed by Android Git Automerger
2 changed files with 9 additions and 3 deletions

View File

@@ -52,4 +52,8 @@
<item name="android:colorControlNormal">#80ffffff</item>
<item name="android:colorControlActivated">#80ffffff</item>
</style>
<style name="keyguard_presentation_theme" parent="@android:style/Theme.Material.NoActionBar.Fullscreen">
</style>
</resources>

View File

@@ -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);
}