Merge "Fix the crash on animating the accessibility floating menu." into tm-qpr-dev
This commit is contained in:
@@ -353,6 +353,7 @@ public class AccessibilityFloatingMenuView extends FrameLayout
|
|||||||
}
|
}
|
||||||
|
|
||||||
mIsShowing = false;
|
mIsShowing = false;
|
||||||
|
mDragAnimator.cancel();
|
||||||
mWindowManager.removeView(this);
|
mWindowManager.removeView(this);
|
||||||
|
|
||||||
setOnApplyWindowInsetsListener(null);
|
setOnApplyWindowInsetsListener(null);
|
||||||
|
|||||||
@@ -190,6 +190,16 @@ public class AccessibilityFloatingMenuViewTest extends SysuiTestCase {
|
|||||||
verify(mWindowManager, times(1)).removeView(eq(mMenuView));
|
verify(mWindowManager, times(1)).removeView(eq(mMenuView));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void hideMenuViewWhenStartingAnimation_animatorNotRunning() {
|
||||||
|
mMenuView.show();
|
||||||
|
|
||||||
|
mMenuView.mDragAnimator.start();
|
||||||
|
mMenuView.hide();
|
||||||
|
|
||||||
|
assertThat(mMenuView.mDragAnimator.isRunning()).isFalse();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void onTargetsChanged_singleTarget_expectedRadii() {
|
public void onTargetsChanged_singleTarget_expectedRadii() {
|
||||||
final Position alignRightPosition = new Position(1.0f, 0.0f);
|
final Position alignRightPosition = new Position(1.0f, 0.0f);
|
||||||
|
|||||||
Reference in New Issue
Block a user