diff options
| author | 2011-01-10 21:06:22 -0800 | |
|---|---|---|
| committer | 2011-01-10 21:06:22 -0800 | |
| commit | 19b78d949cba4aaaf3f1812a823818db05501451 (patch) | |
| tree | a808d12bd0b8e74e3737a52c6cde7e958b642f1c | |
| parent | f527a1d936aea3d531ced39ccc714935a7d02c47 (diff) | |
| parent | 01f9944749278f3bbec7e22f33388a53eab1a076 (diff) | |
Merge "Fix 3305645: Hide recents if there are no recent apps." into honeycomb
| -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) { |