mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Keep transparent drawable for clipping outline during launch animation" into sc-dev am: 66f1b57815 am: e08c377a72
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15284080 Change-Id: If16f06c6aa4d615df865a64f9327dcae9c131eaa
This commit is contained in:
@@ -72,14 +72,20 @@ final class FloatingWidgetBackgroundView extends View {
|
||||
mForegroundProperties.init(
|
||||
mOriginalForeground.getConstantState().newDrawable().mutate());
|
||||
setForeground(mForegroundProperties.mDrawable);
|
||||
mSourceView.setForeground(null);
|
||||
Drawable clipPlaceholder =
|
||||
mOriginalForeground.getConstantState().newDrawable().mutate();
|
||||
clipPlaceholder.setAlpha(0);
|
||||
mSourceView.setForeground(clipPlaceholder);
|
||||
}
|
||||
if (isSupportedDrawable(backgroundView.getBackground())) {
|
||||
mOriginalBackground = backgroundView.getBackground();
|
||||
mBackgroundProperties.init(
|
||||
mOriginalBackground.getConstantState().newDrawable().mutate());
|
||||
setBackground(mBackgroundProperties.mDrawable);
|
||||
mSourceView.setBackground(null);
|
||||
Drawable clipPlaceholder =
|
||||
mOriginalBackground.getConstantState().newDrawable().mutate();
|
||||
clipPlaceholder.setAlpha(0);
|
||||
mSourceView.setBackground(clipPlaceholder);
|
||||
} else if (mOriginalForeground == null) {
|
||||
mFallbackDrawable.setColor(fallbackBackgroundColor);
|
||||
setBackground(mFallbackDrawable);
|
||||
|
||||
Reference in New Issue
Block a user