summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2010-12-21 22:49:09 -0800
committerJim Miller <jaggies@google.com>2010-12-21 22:49:09 -0800
commit5e5b1b39ebb59137b340ff48c7d5d0862fb03f28 (patch)
tree82be0ff4fb02dba4e6d0bf296a79f79b89555c20 /packages
parentf642c89964c9f53c22d0b0f12e33849a93ffbcb2 (diff)
downloadframeworks_base-5e5b1b39ebb59137b340ff48c7d5d0862fb03f28.zip
frameworks_base-5e5b1b39ebb59137b340ff48c7d5d0862fb03f28.tar.gz
frameworks_base-5e5b1b39ebb59137b340ff48c7d5d0862fb03f28.tar.bz2
Fix 3290446: Reduce number of recents to fit in a single binder
This fixes a bug where all recent apps disappear because the binder transaction fails due to size constraints. Change-Id: I173e552e820314b4c539aaf356cef4042a0822e9
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java
index edcf096..3c665fe 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java
@@ -58,9 +58,9 @@ public class RecentAppsPanel extends LinearLayout implements StatusBarPanel, OnC
private static final int COLLAPSE_DURATION = 360;
private static final String TAG = "RecentAppsPanel";
private static final boolean DEBUG = TabletStatusBar.DEBUG;
- private static final int DISPLAY_TASKS_PORTRAIT = 8;
+ private static final int DISPLAY_TASKS_PORTRAIT = 7; // Limited by max binder transaction size
private static final int DISPLAY_TASKS_LANDSCAPE = 5; // number of recent tasks to display
- private static final int MAX_TASKS = DISPLAY_TASKS_PORTRAIT + 2; // allow extra for non-apps
+ private static final int MAX_TASKS = DISPLAY_TASKS_PORTRAIT + 1; // allow extra for non-apps
private static final int STAGGER_ANIMATION_DELAY = 30;
private static final long ALPHA_ANIMATION_DURATION = 120;
private TabletStatusBar mBar;