Fixing random crash when transitioning to Recents, ensuring we don't update the TextView unnecessarily.
Change-Id: I93ab512642f6e95ee96e041614f063f46420bb39
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
index 8f4f235..1ba0560 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
@@ -535,6 +535,15 @@
}
}
+ @Override
+ protected boolean drawChild(Canvas canvas, View child, long drawingTime) {
+ if (mIsStub && (child == mThumbnailView)) {
+ // Skip the thumbnail view if we are in stub mode
+ return false;
+ }
+ return super.drawChild(canvas, child, drawingTime);
+ }
+
/**
* Sets the focused task explicitly. We need a separate flag because requestFocus() won't happen
* if the view is not currently visible, or we are in touch state (where we still want to keep