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

Commit 8cdf650e authored by mattsziklay's avatar mattsziklay
Browse files

Set input layers to GONE rather than INVISIBLE.

Input layers should not be present at all before a single task has been
opened.

Bug: 375704692
Test: Manual
Flag: com.android.window.flags.enable_handle_input_fix
Change-Id: I3993511af7bdb351c87d986cc7bc2a6b6a5b6c41
parent 575fff61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ class DesktopStatusBarInputLayerSupplier(
        lp.inputFeatures = WindowManager.LayoutParams.INPUT_FEATURE_SPY
        lp.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
        val view = View(context)
        view.visibility = View.INVISIBLE
        view.visibility = View.GONE
        return AdditionalSystemViewContainer(
            WindowManagerWrapper(
                context.getSystemService<WindowManager>(WindowManager::class.java)
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ internal class AppHandleViewHolder(
        }
        // Remove the old input layer when changing to a new one.
        if (statusBarInputLayer != null) detachStatusBarInputLayer()
        if (statusBarLayer.view.visibility == View.INVISIBLE) {
        if (statusBarLayer.view.visibility == View.GONE) {
            statusBarLayer.view.visibility = View.VISIBLE
        }
        statusBarInputLayer = statusBarLayer