mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Merge "Fixing issue with flash during overview transition." into ub-launcher3-burnaby
This commit is contained in:
@@ -211,6 +211,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
|
||||
mBackground = (TransitionDrawable) res.getDrawable(R.drawable.bg_screenpanel);
|
||||
mBackground.setCallback(this);
|
||||
mBackground.setAlpha((int) (mBackgroundAlpha * 255));
|
||||
|
||||
mReorderPreviewAnimationMagnitude = (REORDER_PREVIEW_MAGNITUDE *
|
||||
grid.iconSizePx);
|
||||
@@ -414,7 +415,11 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
if (mIsDragOverlapping) {
|
||||
mBackground.startTransition(BACKGROUND_ACTIVATE_DURATION);
|
||||
} else {
|
||||
mBackground.reverseTransition(BACKGROUND_ACTIVATE_DURATION);
|
||||
if (mBackgroundAlpha > 0f) {
|
||||
mBackground.reverseTransition(BACKGROUND_ACTIVATE_DURATION);
|
||||
} else {
|
||||
mBackground.resetTransition();
|
||||
}
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user