Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 354d7d13 authored by Thales Lima's avatar Thales Lima Committed by Automerger Merge Worker
Browse files

Merge "Make taskbar touchable region smaller in Overview" into udc-dev am:...

Merge "Make taskbar touchable region smaller in Overview" into udc-dev am: fda9f3d4 am: eb257ed3

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22995656



Change-Id: I2cb5c4d764368526e39fc722513a6d28c8a8d3d7
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a126703c eb257ed3
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -33,11 +33,13 @@ import android.view.WindowInsets.Type.tappableElement
import android.view.WindowManager
import android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD
import android.view.WindowManager.LayoutParams.TYPE_VOICE_INTERACTION
import androidx.core.graphics.toRegion
import com.android.internal.policy.GestureNavigationSettingsObserver
import com.android.launcher3.DeviceProfile
import com.android.launcher3.R
import com.android.launcher3.anim.AlphaUpdateListener
import com.android.launcher3.taskbar.TaskbarControllers.LoggableTaskbarController
import com.android.launcher3.util.DisplayController
import java.io.PrintWriter

/** Handles the insets that Taskbar provides to underlying apps and the IME. */
@@ -245,7 +247,16 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas
                bubbleBarVisible
        ) {
            // Taskbar has some touchable elements, take over the full taskbar area
            if (
                controllers.uiController.isInOverview &&
                    DisplayController.isTransientTaskbar(context)
            ) {
                insetsInfo.touchableRegion.set(
                    controllers.taskbarActivityContext.dragLayer.lastDrawnTransientRect.toRegion()
                )
            } else {
                insetsInfo.touchableRegion.set(touchableRegion)
            }
            insetsInfo.setTouchableInsets(TOUCHABLE_INSETS_REGION)
            insetsIsTouchableRegion = false
        } else {
+4 −0
Original line number Diff line number Diff line
@@ -432,6 +432,10 @@ public class TaskbarLauncherStateController {
                // We're changing state to home, should close open popups e.g. Taskbar AllApps
                handleOpenFloatingViews = true;
            }
            if (mLauncherState == LauncherState.OVERVIEW) {
                // Calling to update the insets in TaskbarInsetController#updateInsetsTouchability
                mControllers.taskbarActivityContext.notifyUpdateLayoutParams();
            }
        }

        if (hasAnyFlag(changedFlags, FLAGS_LAUNCHER_ACTIVE)) {