diff --git a/aconfig/launcher_accessibility.aconfig b/aconfig/launcher_accessibility.aconfig deleted file mode 100644 index 13e1127efb..0000000000 --- a/aconfig/launcher_accessibility.aconfig +++ /dev/null @@ -1,12 +0,0 @@ -package: "com.android.launcher3" -container: "system_ext" - -flag { - name: "remove_exclude_from_screen_magnification_flag_usage" - namespace: "accessibility" - description: "Remove the WindowManager PRIVATE_FLAG_EXCLUDE_FROM_SCREEN_MAGNIFICATION flag usage in Launcher" - bug: "369019568" - metadata { - purpose: PURPOSE_BUGFIX - } -} diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java index bac2060a65..1b70a46c87 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java @@ -32,7 +32,6 @@ import static com.android.launcher3.AbstractFloatingView.TYPE_ON_BOARD_POPUP; import static com.android.launcher3.AbstractFloatingView.TYPE_REBIND_SAFE; import static com.android.launcher3.AbstractFloatingView.TYPE_TASKBAR_OVERLAY_PROXY; import static com.android.launcher3.Flags.enableCursorHoverStates; -import static com.android.launcher3.Flags.removeExcludeFromScreenMagnificationFlagUsage; import static com.android.launcher3.Utilities.calculateTextHeight; import static com.android.launcher3.Utilities.isRunningInTestHarness; import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_NAVBAR_UNIFICATION; @@ -241,8 +240,6 @@ public class TaskbarActivityContext extends BaseTaskbarContext { private final boolean mIsNavBarKidsMode; private boolean mIsDestroyed = false; - // The flag to know if the window is excluded from magnification region computation. - private boolean mIsExcludeFromMagnificationRegion = false; private boolean mAddedWindow = false; // The bounds of the taskbar items relative to TaskbarDragLayer @@ -2079,31 +2076,6 @@ public class TaskbarActivityContext extends BaseTaskbarContext { return AnimatorPlaybackController.wrap(fullAnimation, duration); } - /** - * Called when we determine the touchable region. - * - * @param exclude {@code true} then the magnification region computation will omit the window. - */ - public void excludeFromMagnificationRegion(boolean exclude) { - if (mIsExcludeFromMagnificationRegion == exclude || isPhoneMode()) { - return; - } - - if (removeExcludeFromScreenMagnificationFlagUsage()) { - return; - } - - mIsExcludeFromMagnificationRegion = exclude; - if (exclude) { - mWindowLayoutParams.privateFlags |= - WindowManager.LayoutParams.PRIVATE_FLAG_EXCLUDE_FROM_SCREEN_MAGNIFICATION; - } else { - mWindowLayoutParams.privateFlags &= - ~WindowManager.LayoutParams.PRIVATE_FLAG_EXCLUDE_FROM_SCREEN_MAGNIFICATION; - } - notifyUpdateLayoutParams(); - } - void notifyUpdateLayoutParams() { if (mDragLayer.isAttachedToWindow()) { // Copy the current windowLayoutParams to mLastUpdatedLayoutParams and compare the diff. diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt index e4d0bedfb3..9307899858 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt @@ -355,7 +355,6 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas val bubbleBarVisible = controllers.bubbleControllers.isPresent && controllers.bubbleControllers.get().bubbleBarViewController.isBubbleBarVisible() - var insetsIsTouchableRegion = true // Prevents the taskbar from taking touches and conflicting with setup wizard if ( context.isPhoneButtonNavMode && @@ -364,7 +363,6 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas !controllers.navbarButtonsViewController.isImeRenderingNavButtons) ) { insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_FRAME) - insetsIsTouchableRegion = false debugTouchableRegion.lastSetTouchableReason = "Phone button nav mode: Fullscreen touchable, IME not affecting nav buttons" } else if (context.dragLayer.alpha < AlphaUpdateListener.ALPHA_CUTOFF_THRESHOLD) { @@ -389,7 +387,6 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas } else if (context.isTaskbarWindowFullscreen) { // Intercept entire fullscreen window. insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_FRAME) - insetsIsTouchableRegion = false debugTouchableRegion.lastSetTouchableReason = "Taskbar is fullscreen" context.dragLayer.getBoundsInWindow(debugTouchableRegion.lastSetTouchableBounds, false) } else if ( @@ -425,7 +422,6 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas debugTouchableRegion.lastSetTouchableBounds.set(defaultTouchableRegion.bounds) } insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_REGION) - insetsIsTouchableRegion = false } else { insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_REGION) debugTouchableRegion.lastSetTouchableReason = @@ -437,7 +433,6 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas insetsInfo.touchableRegion, ) debugTouchableRegion.lastSetTouchableBounds.set(insetsInfo.touchableRegion.bounds) - context.excludeFromMagnificationRegion(insetsIsTouchableRegion) } /** Draws the last set touchableRegion as a red rectangle onto the given Canvas. */