mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Fix window transition when opening app from deep shortcut menu.
Bug: 74109370 Change-Id: I10bbc6d6dd2ead1f4649830795af5d84a346073e
This commit is contained in:
@@ -619,7 +619,13 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag
|
||||
*/
|
||||
private ValueAnimator getWindowAnimators(View v, RemoteAnimationTargetCompat[] targets) {
|
||||
Rect bounds = new Rect();
|
||||
if (v instanceof BubbleTextView) {
|
||||
boolean isDeepShortcutTextView = v instanceof DeepShortcutTextView
|
||||
&& v.getParent() != null && v.getParent() instanceof DeepShortcutView;
|
||||
if (isDeepShortcutTextView) {
|
||||
// Deep shortcut views have their icon drawn in a sibling view.
|
||||
DeepShortcutView view = (DeepShortcutView) v.getParent();
|
||||
mDragLayer.getDescendantRectRelativeToSelf(view.getIconView(), bounds);
|
||||
} else if (v instanceof BubbleTextView) {
|
||||
((BubbleTextView) v).getIconBounds(bounds);
|
||||
} else {
|
||||
mDragLayer.getDescendantRectRelativeToSelf(v, bounds);
|
||||
|
||||
Reference in New Issue
Block a user