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: If1146ba268af3817474213cafc2a320081268499
This commit is contained in:
Cyrus Boadway
2021-05-05 16:03:02 +00:00
committed by Automerger Merge Worker
@@ -100,8 +100,8 @@ final class FloatingWidgetBackgroundView extends View {
/** 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() {