diff options
| author | 2011-01-10 21:02:25 -0800 | |
|---|---|---|
| committer | 2011-01-10 21:02:25 -0800 | |
| commit | 01f9944749278f3bbec7e22f33388a53eab1a076 (patch) | |
| tree | be4f3f10404b646cfd28dc16bbe06caaaa696a69 | |
| parent | 3459e27e5d2f92d2d5487c189c9386c031e79fc1 (diff) | |
Fix 3305645: Hide recents if there are no recent apps.
Change-Id: I7a6131b22fd73cb8dae12b8bb80a5921414c1861
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java | 6 |
1 files changed, 5 insertions, 1 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 612427b21747..53c30fe73426 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java @@ -252,7 +252,11 @@ public class RecentAppsPanel extends LinearLayout implements StatusBarPanel, OnC private void refreshApplicationList() { mActivityDescriptions = getRecentTasks(); - updateUiElements(getResources().getConfiguration(), true); + if (mActivityDescriptions.size() > 0) { + updateUiElements(getResources().getConfiguration(), true); + } else { + mBar.animateCollapse(); + } } private Bitmap compositeBitmap(Bitmap background, Bitmap thumbnail) { |