diff options
author | Amith Yamasani <yamasani@google.com> | 2012-10-12 12:44:49 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2012-10-12 12:44:49 -0700 |
commit | ff54920ed222a2bd6abe618743a5a3e9fe10bd4b (patch) | |
tree | 128a2eb93d273c62d2b18360a84316115df31a6c | |
parent | 86ad866283dc05c2adb8f673510e8b45b0b5ee5f (diff) | |
download | frameworks_base-ff54920ed222a2bd6abe618743a5a3e9fe10bd4b.zip frameworks_base-ff54920ed222a2bd6abe618743a5a3e9fe10bd4b.tar.gz frameworks_base-ff54920ed222a2bd6abe618743a5a3e9fe10bd4b.tar.bz2 |
Temporarily disable multiuser for specific builds
Enable switching through power menu for other builds
Change-Id: I0bd8450583e078b0a83fb639337427ab84db5ab8
-rw-r--r-- | core/java/android/os/UserManager.java | 2 | ||||
-rw-r--r-- | policy/src/com/android/internal/policy/impl/GlobalActions.java | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 2739cac..898c766 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -320,6 +320,8 @@ public class UserManager { * @return a value greater than or equal to 1 */ public static int getMaxSupportedUsers() { + // Don't allow multiple users on certain builds + if (android.os.Build.ID.startsWith("JVP")) return 1; return SystemProperties.getInt("fw.max_users", Resources.getSystem().getInteger(R.integer.config_multiuserMaximumUsers)); } diff --git a/policy/src/com/android/internal/policy/impl/GlobalActions.java b/policy/src/com/android/internal/policy/impl/GlobalActions.java index 11b58bc..9ea47f9 100644 --- a/policy/src/com/android/internal/policy/impl/GlobalActions.java +++ b/policy/src/com/android/internal/policy/impl/GlobalActions.java @@ -314,7 +314,8 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac } // one more thing: optionally add a list of users to switch to - if (SystemProperties.getBoolean("fw.power_user_switcher", false)) { + // temporarily enable this by default + if (true || SystemProperties.getBoolean("fw.power_user_switcher", false)) { addUsersToMenu(mItems); } |