summaryrefslogtreecommitdiff
path: root/core/java/android/view/ViewRoot.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-01-27 17:17:19 -0800
committerDianne Hackborn <hackbod@google.com>2011-01-27 17:17:19 -0800
commit83a6f450bde23e1bfd07ee1c218dab35053dec76 (patch)
tree98be4fbf1fe77956ade107e3a3648fc9ef3cce4b /core/java/android/view/ViewRoot.java
parenteea200a96a561d8eb9e26831aa6aaf7ddf6ad5a5 (diff)
Maybe fix issue #3358322: Status and nav bar died while watching youtube
Or at least make it better. Now if we get a failure locking the surface, we mark to do a full relayout pass later to try to get a new good surface. Also fix some bugs in how activity manager was classifying processes for their OOM adjustment to make better choices in what to kill. Change-Id: I8e4aa86744211ba7693f9828291d8bbf2698274f
Diffstat (limited to 'core/java/android/view/ViewRoot.java')
-rw-r--r--core/java/android/view/ViewRoot.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/view/ViewRoot.java b/core/java/android/view/ViewRoot.java
index 41fc6c6e33d0..af19ab863182 100644
--- a/core/java/android/view/ViewRoot.java
+++ b/core/java/android/view/ViewRoot.java
@@ -1550,11 +1550,13 @@ public final class ViewRoot extends Handler implements ViewParent,
Log.e(TAG, "OutOfResourcesException locking surface", e);
// TODO: we should ask the window manager to do something!
// for now we just do nothing
+ mLayoutRequested = true; // ask wm for a new surface next time.
return;
} catch (IllegalArgumentException e) {
Log.e(TAG, "IllegalArgumentException locking surface", e);
// TODO: we should ask the window manager to do something!
// for now we just do nothing
+ mLayoutRequested = true; // ask wm for a new surface next time.
return;
}