summaryrefslogtreecommitdiffstats
path: root/cmds/am
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-05-11 17:34:49 -0700
committerDianne Hackborn <hackbod@google.com>2011-05-12 13:28:45 -0700
commit0f1de9adde0b52d2a385a76232bd7ac30c3eeea2 (patch)
tree6d30064324ea987411955a88cb0272ddb27d39b2 /cmds/am
parentf3cdea937b8b659f959d5e77f4a17f749f85c6ae (diff)
downloadframeworks_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.java5
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();