summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recent
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2012-09-04 03:49:04 -0700
committerMichael Jurka <mikejurka@google.com>2012-09-04 03:52:16 -0700
commita4dd30174d8f0b385cfb37258c583afcb725794c (patch)
tree16a24e6be4f7b1dc44dc61b0f62676e891924dbd /packages/SystemUI/src/com/android/systemui/recent
parente94831e5ed4aa3b1ebc5444cc1b16cdab8cb92f8 (diff)
downloadframeworks_base-a4dd30174d8f0b385cfb37258c583afcb725794c.zip
frameworks_base-a4dd30174d8f0b385cfb37258c583afcb725794c.tar.gz
frameworks_base-a4dd30174d8f0b385cfb37258c583afcb725794c.tar.bz2
Debug code for window transition crash
https://b.corp.google.com/7060284 - Throw exception before we try to start window transition with null thumb - also remove some old unneeded debug code Change-Id: Ic9693372724cbfaa4c4cb2594128ca10677d9d8f
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java10
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);