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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user