From 5383f502e4479d117c89666fb2ee1ca53f3d27cf Mon Sep 17 00:00:00 2001
From: Dianne Hackborn
Date: Fri, 22 Oct 2010 12:59:20 -0700
Subject: [PATCH] Fix issue #3122240: Expose xlarge in GB.
Plus some other small API cleanup.
Change-Id: I1a3c60f510f99224cccac9cc3f838f04141064f8
---
api/current.xml | 22 +++++++++----------
core/java/android/app/ActivityManager.java | 8 ++++---
.../android/content/res/Configuration.java | 1 -
core/java/android/os/Build.java | 10 +--------
.../server/am/ActivityManagerService.java | 2 +-
5 files changed, 18 insertions(+), 25 deletions(-)
diff --git a/api/current.xml b/api/current.xml
index 11b510492e682..8aba74af27cfa 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -18536,17 +18536,6 @@
visibility="public"
>
-
-
+
+
Applications targeting this or a later release will get these
- * new changes in behavior:
- *
- * - The status bar is now dark. Targeting this version allows
- * the platform to perform performing compatibility on status bar
- * graphics to ensure they look okay on a dark background.
- *
+ * Newest version of Android, version 2.3.
*/
public static final int GINGERBREAD = 9;
}
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java
index aa2f784dc7977..6db45594e6bb9 100644
--- a/services/java/com/android/server/am/ActivityManagerService.java
+++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -7051,7 +7051,7 @@ public final class ActivityManagerService extends ActivityManagerNative
} else if (adj >= SECONDARY_SERVER_ADJ) {
currApp.importance = ActivityManager.RunningAppProcessInfo.IMPORTANCE_SERVICE;
} else if (adj >= HEAVY_WEIGHT_APP_ADJ) {
- currApp.importance = ActivityManager.RunningAppProcessInfo.IMPORTANCE_HEAVY_WEIGHT;
+ currApp.importance = ActivityManager.RunningAppProcessInfo.IMPORTANCE_CANT_SAVE_STATE;
} else if (adj >= PERCEPTIBLE_APP_ADJ) {
currApp.importance = ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE;
} else if (adj >= VISIBLE_APP_ADJ) {