summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/am/CompatModePackages.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/services/java/com/android/server/am/CompatModePackages.java b/services/java/com/android/server/am/CompatModePackages.java
index 1334bcd..f656486 100644
--- a/services/java/com/android/server/am/CompatModePackages.java
+++ b/services/java/com/android/server/am/CompatModePackages.java
@@ -131,13 +131,7 @@ public class CompatModePackages {
final boolean mayCompat = !ci.alwaysSupportsScreen()
&& !ci.neverSupportsScreen();
- if (!updated) {
- // First time -- if the app may run in compat mode, enable that
- // by default.
- if (mayCompat) {
- setPackageScreenCompatModeLocked(ai, ActivityManager.COMPAT_MODE_ENABLED);
- }
- } else {
+ if (updated) {
// Update -- if the app no longer can run in compat mode, clear
// any current settings for it.
if (!mayCompat && mPackages.containsKey(packageName)) {