diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-05-11 17:34:49 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-05-12 13:28:45 -0700 |
commit | 0f1de9adde0b52d2a385a76232bd7ac30c3eeea2 (patch) | |
tree | 6d30064324ea987411955a88cb0272ddb27d39b2 /cmds/am | |
parent | f3cdea937b8b659f959d5e77f4a17f749f85c6ae (diff) | |
download | frameworks_base-0f1de9adde0b52d2a385a76232bd7ac30c3eeea2.zip frameworks_base-0f1de9adde0b52d2a385a76232bd7ac30c3eeea2.tar.gz frameworks_base-0f1de9adde0b52d2a385a76232bd7ac30c3eeea2.tar.bz2 |
New compat mode front end: UI and persistence.
Adds a really crappy UI for toggling compat mode.
Persists compat mode selection across boots.
Turns on compat mode by default for newly installed apps.
Change-Id: Idc83494397bd17c41450bc9e9a05e4386c509399
Diffstat (limited to 'cmds/am')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 5c8abe4..8a9144c 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -18,6 +18,7 @@ package com.android.commands.am; +import android.app.ActivityManager; import android.app.ActivityManagerNative; import android.app.IActivityController; import android.app.IActivityManager; @@ -794,7 +795,9 @@ public class Am { String packageName = nextArgRequired(); do { try { - mAm.setPackageScreenCompatMode(packageName, enabled); + mAm.setPackageScreenCompatMode(packageName, enabled + ? ActivityManager.COMPAT_MODE_ENABLED + : ActivityManager.COMPAT_MODE_DISABLED); } catch (RemoteException e) { } packageName = nextArg(); |