Fix an issue where the highlight for drag to split was incorrect
1. Have a fullscreen immersive app open 2. Swipe bottom of the screen to show the taskbar 3. Drag and app In 3 when you start dragging the app, the taskbar hides because you're in an immersive app, this causes the rect for the drag targets to be different, so we'd end up animating the drop zones to switch even though the type of the target was the same. Fix is to check that the target type is different before animating the switch. Bug: 255008704 Test: manual Change-Id: Ic8a7b23e79c54ba74aa6bebf528fb0b3894a8fa1
This commit is contained in:
@@ -311,7 +311,7 @@ public class DragLayout extends LinearLayout {
|
||||
animateSplitContainers(true, null /* animCompleteCallback */);
|
||||
animateHighlight(target);
|
||||
}
|
||||
} else {
|
||||
} else if (mCurrentTarget.type != target.type) {
|
||||
// Switching between targets
|
||||
mDropZoneView1.animateSwitch();
|
||||
mDropZoneView2.animateSwitch();
|
||||
|
||||
Reference in New Issue
Block a user