diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java index c3ecdb5..b133ff9 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java @@ -164,13 +164,6 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = createView(parent); - if (convertView.getParent() != null) { - throw new RuntimeException("Recycled child has parent"); - } - } else { - if (convertView.getParent() != null) { - throw new RuntimeException("Recycled child has parent"); - } } ViewHolder holder = (ViewHolder) convertView.getTag(); @@ -600,6 +593,9 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener usingDrawingCache = true; } + if (bm == null) { + throw new RuntimeException("Recents thumbnail is null"); + } ActivityOptions opts = ActivityOptions.makeThumbnailScaleUpAnimation( holder.thumbnailViewImage, bm, 0, 0, null); |