summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorVinod Krishnan <vinodkrishnan@google.com>2014-04-18 14:35:53 -0700
committerVinod Krishnan <vinodkrishnan@google.com>2014-04-28 22:07:26 -0700
commitfa8fc41bdc36ef02e0884c785b0a906a80b7ae1d (patch)
tree7b05ebe3697877c2ce149301a8f3ff5dd05d5d05 /policy
parent6fe328c62abd3b98aceeeb99aaf5d824bd42adc6 (diff)
downloadframeworks_base-fa8fc41bdc36ef02e0884c785b0a906a80b7ae1d.zip
frameworks_base-fa8fc41bdc36ef02e0884c785b0a906a80b7ae1d.tar.gz
frameworks_base-fa8fc41bdc36ef02e0884c785b0a906a80b7ae1d.tar.bz2
DialogAlert window changes for Micro
Bug: 13243004 - The only difference between alert_dialog_micro.xml and alert_dialog_holo.xml is: < android:layout_height="match_parent" --- > android:layout_height="wrap_content" > android:layout_marginStart="8dip" > android:layout_marginEnd="8dip" Change-Id: I84f9a88099a37aa7f5868e128b19cb1e812cb745
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindowManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index 7128cfa..fce5392 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -4722,7 +4722,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
mHandler.post(new Runnable() {
@Override public void run() {
if (mBootMsgDialog == null) {
- mBootMsgDialog = new ProgressDialog(mContext) {
+ int theme = mContext.getPackageManager().hasSystemFeature(
+ PackageManager.FEATURE_WATCH) ?
+ com.android.internal.R.style.Theme_Micro_Dialog_Alert : 0;
+
+ mBootMsgDialog = new ProgressDialog(mContext, theme) {
// This dialog will consume all events coming in to
// it, to avoid it trying to do things too early in boot.
@Override public boolean dispatchKeyEvent(KeyEvent event) {