diff options
author | Joe Onorato <joeo@google.com> | 2011-12-14 20:59:30 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2011-12-15 16:16:14 -0800 |
commit | 44fcb83b38b062a650ddf556fe7f5e34905df9ea (patch) | |
tree | f5726b3011934023b43a46eb3ce3be6742a274ba /policy | |
parent | 3766a7a27535101e62af958b1d2d710daa166d7d (diff) | |
download | frameworks_base-44fcb83b38b062a650ddf556fe7f5e34905df9ea.zip frameworks_base-44fcb83b38b062a650ddf556fe7f5e34905df9ea.tar.gz frameworks_base-44fcb83b38b062a650ddf556fe7f5e34905df9ea.tar.bz2 |
Add a new ui mode for "appliance"
The idea is that this is a device which is more-or-less headless. It
might have some limited interaction capabilities, but it's not something
that you want to rely on having.
Change-Id: Ib92f53a120bf83de781728011721a4859def7d9f
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 4 |
1 files changed, 3 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 1a252fa..468f0d5 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -319,7 +319,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { boolean mSystemReady; boolean mSystemBooted; boolean mHdmiPlugged; - int mUiMode = Configuration.UI_MODE_TYPE_NORMAL; + int mUiMode; int mDockMode = Intent.EXTRA_DOCK_STATE_UNDOCKED; int mLidOpenRotation; int mCarDockRotation; @@ -793,6 +793,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { settingsObserver.observe(); mShortcutManager = new ShortcutManager(context, mHandler); mShortcutManager.observe(); + mUiMode = context.getResources().getInteger( + com.android.internal.R.integer.config_defaultUiModeType); mHomeIntent = new Intent(Intent.ACTION_MAIN, null); mHomeIntent.addCategory(Intent.CATEGORY_HOME); mHomeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK |