commit | e25a5157b483ff134fadafdc4a58e9b8f6badad6 | [log] [tgz] |
---|---|---|
author | Cyrus Boadway <boadway@google.com> | Wed May 05 16:04:34 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed May 05 16:04:34 2021 +0000 |
tree | 9f210ac2637785dc01276b4011c37c880f294814 | |
parent | 714cfcacaa2a6e3f04dadb46d624178038abc90f [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: Id697f4b941d6358f756fafdd64e82e9fd08e8402
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() {