From 5e5b1b39ebb59137b340ff48c7d5d0862fb03f28 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 21 Dec 2010 22:49:09 -0800 Subject: 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 --- .../src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') 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; -- cgit v1.1