commit | 5095684e222b8130e7aa6363f1418d0de54e1110 | [log] [tgz] |
---|---|---|
author | Zak Cohen <zakcohen@google.com> | Mon Jun 17 15:27:28 2019 -0700 |
committer | Zak Cohen <zakcohen@google.com> | Mon Jun 17 15:27:28 2019 -0700 |
tree | af1c2cee97d570c99dac5e9336fb9b2f79ea2e3e | |
parent | f46e3956ddba136c44df97aa1997aa67b0387018 [diff] |
TaskThumbnailView - post updates to overlays. Post the update of the overlay to handler. No way of knowing if an overlay will add / remove views during the update so assume its not safe to do in layout. Bug: 135287203 Test: manual Change-Id: I7bd0c86da096e7108b71b2d0530e99ee950d6f2e
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java index 6f10b42..d55a520 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java
@@ -367,8 +367,11 @@ } mRotated = isRotated; - updateOverlay(); invalidate(); + + // Update can be called from {@link #onSizeChanged} during layout, post handling of overlay + // as overlay could modify the views in the overlay as a side effect of its update. + post(this::updateOverlay); } @Override