Loading packages/SystemUI/aconfig/accessibility.aconfig +0 −10 Original line number Diff line number Diff line Loading @@ -17,16 +17,6 @@ flag { bug: "281140482" } flag { name: "floating_menu_remove_fullscreen_taps" namespace: "accessibility" description: "Stops MenuViewLayer from taking some inputs by making it unclickable." bug: "411287116" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "redesign_magnification_window_size" namespace: "accessibility" Loading packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/MenuViewLayer.java +7 −18 Original line number Diff line number Diff line Loading @@ -195,14 +195,12 @@ class MenuViewLayer extends FrameLayout implements @Override public void onAnimationRepeat(Animation animation) { if (Flags.floatingMenuRemoveFullscreenTaps()) { mIsDockDemoDocked = !mIsDockDemoDocked; // Only stop animation once MenuView has looped back to its normal position. if (!mShouldLoopDockDemo && !mIsDockDemoDocked) { mMenuView.clearAnimation(); } } } }; MenuViewLayer(@NonNull Context context, WindowManager windowManager, Loading Loading @@ -357,9 +355,6 @@ class MenuViewLayer extends FrameLayout implements super.onAttachedToWindow(); mMenuView.show(); if (!Flags.floatingMenuRemoveFullscreenTaps()) { setOnClickListener(this); } setOnApplyWindowInsetsListener((view, insets) -> onWindowInsetsApplied(insets)); getViewTreeObserver().addOnComputeInternalInsetsListener(this); mMenuViewModel.getDockTooltipVisibilityData().observeForever(mDockTooltipObserver); Loading Loading @@ -479,10 +474,8 @@ class MenuViewLayer extends FrameLayout implements void dispatchTooltipTuckAnimation() { Animation animation = mMenuAnimationController.startTuckedAnimationPreview(); if (Flags.floatingMenuRemoveFullscreenTaps()) { animation.setAnimationListener(mTuckDemoListener); } } void dispatchAccessibilityAction(int id) { if (id == R.id.action_remove_menu) { Loading Loading @@ -560,10 +553,8 @@ class MenuViewLayer extends FrameLayout implements mMenuListViewTouchHandler.setOnActionDownEndListener( () -> mEduTooltipView.ifPresent(this::removeTooltip)); if (Flags.floatingMenuRemoveFullscreenTaps()) { setOnClickListener(this); } } private void removeTooltip(View tooltipView) { if (tooltipView.getTag().equals(TooltipType.MIGRATION)) { Loading @@ -582,10 +573,8 @@ class MenuViewLayer extends FrameLayout implements mMenuListViewTouchHandler.setOnActionDownEndListener(null); mEduTooltipView = Optional.empty(); if (Flags.floatingMenuRemoveFullscreenTaps()) { setClickable(false); } } @VisibleForTesting void hideMenuAndShowMessage() { Loading Loading
packages/SystemUI/aconfig/accessibility.aconfig +0 −10 Original line number Diff line number Diff line Loading @@ -17,16 +17,6 @@ flag { bug: "281140482" } flag { name: "floating_menu_remove_fullscreen_taps" namespace: "accessibility" description: "Stops MenuViewLayer from taking some inputs by making it unclickable." bug: "411287116" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "redesign_magnification_window_size" namespace: "accessibility" Loading
packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/MenuViewLayer.java +7 −18 Original line number Diff line number Diff line Loading @@ -195,14 +195,12 @@ class MenuViewLayer extends FrameLayout implements @Override public void onAnimationRepeat(Animation animation) { if (Flags.floatingMenuRemoveFullscreenTaps()) { mIsDockDemoDocked = !mIsDockDemoDocked; // Only stop animation once MenuView has looped back to its normal position. if (!mShouldLoopDockDemo && !mIsDockDemoDocked) { mMenuView.clearAnimation(); } } } }; MenuViewLayer(@NonNull Context context, WindowManager windowManager, Loading Loading @@ -357,9 +355,6 @@ class MenuViewLayer extends FrameLayout implements super.onAttachedToWindow(); mMenuView.show(); if (!Flags.floatingMenuRemoveFullscreenTaps()) { setOnClickListener(this); } setOnApplyWindowInsetsListener((view, insets) -> onWindowInsetsApplied(insets)); getViewTreeObserver().addOnComputeInternalInsetsListener(this); mMenuViewModel.getDockTooltipVisibilityData().observeForever(mDockTooltipObserver); Loading Loading @@ -479,10 +474,8 @@ class MenuViewLayer extends FrameLayout implements void dispatchTooltipTuckAnimation() { Animation animation = mMenuAnimationController.startTuckedAnimationPreview(); if (Flags.floatingMenuRemoveFullscreenTaps()) { animation.setAnimationListener(mTuckDemoListener); } } void dispatchAccessibilityAction(int id) { if (id == R.id.action_remove_menu) { Loading Loading @@ -560,10 +553,8 @@ class MenuViewLayer extends FrameLayout implements mMenuListViewTouchHandler.setOnActionDownEndListener( () -> mEduTooltipView.ifPresent(this::removeTooltip)); if (Flags.floatingMenuRemoveFullscreenTaps()) { setOnClickListener(this); } } private void removeTooltip(View tooltipView) { if (tooltipView.getTag().equals(TooltipType.MIGRATION)) { Loading @@ -582,10 +573,8 @@ class MenuViewLayer extends FrameLayout implements mMenuListViewTouchHandler.setOnActionDownEndListener(null); mEduTooltipView = Optional.empty(); if (Flags.floatingMenuRemoveFullscreenTaps()) { setClickable(false); } } @VisibleForTesting void hideMenuAndShowMessage() { Loading