commit | 44e1d463af52afe880aaca0959fb622ae1ce487d | [log] [tgz] |
---|---|---|
author | Cyrus Boadway <boadway@google.com> | Wed May 05 16:02:56 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed May 05 16:02:56 2021 +0000 |
tree | a1a1abefc6d71d16e98b23116e34e61a4d0f2e1b | |
parent | 5b9aca0e3addde025bbba4b192490471233d56c1 [diff] | |
parent | e41034034f078583b9fffb4aeb776d93ae130b8a [diff] |
Fix FloatingWidgetView post-animation fallback background handling am: e41034034f Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14440781 Change-Id: I56131e0b57e71de16f9b83525acf5e30f38ec221
diff --git a/quickstep/src/com/android/quickstep/views/FloatingWidgetBackgroundView.java b/quickstep/src/com/android/quickstep/views/FloatingWidgetBackgroundView.java index f74aa55..9ea2369 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingWidgetBackgroundView.java +++ b/quickstep/src/com/android/quickstep/views/FloatingWidgetBackgroundView.java
@@ -100,8 +100,8 @@ /** Restores the drawables to the source view. */ void finish() { if (isUninitialized()) return; - mSourceView.setForeground(mOriginalForeground); - mSourceView.setBackground(mOriginalBackground); + if (mOriginalForeground != null) mSourceView.setForeground(mOriginalForeground); + if (mOriginalBackground != null) mSourceView.setBackground(mOriginalBackground); } void recycle() {