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

Commit 254f6792 authored by Jorge Gil's avatar Jorge Gil
Browse files

Add INPUT_FEATURE_NO_INPUT_CHANNEL to SplitDecorManager

SplitDecorManager hosts the resize app icon for each split task, which
doesn't need input features. Adding this flag saves an IPC to
IWindowSession#grantInputChannel.

Bug: 335975211
Test: resize split works, perfetto trace doesn't show this binder
transaction anymore

Change-Id: I4c135ebbb1b5bddb2c45fe2a667686c983049fc8
parent e70357a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.wm.shell.common.split;

import static android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
import static android.view.WindowManager.LayoutParams.INPUT_FEATURE_NO_INPUT_CHANNEL;
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION;
import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY;
import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
@@ -133,8 +134,7 @@ public class SplitDecorManager extends WindowlessWindowManager {
        lp.token = new Binder();
        lp.setTitle(TAG);
        lp.privateFlags |= PRIVATE_FLAG_NO_MOVE_ANIMATION | PRIVATE_FLAG_TRUSTED_OVERLAY;
        // TODO(b/189839391): Set INPUT_FEATURE_NO_INPUT_CHANNEL after WM supports
        //  TRUSTED_OVERLAY for windowless window without input channel.
        lp.inputFeatures |= INPUT_FEATURE_NO_INPUT_CHANNEL;
        mViewHost.setView(rootLayout, lp);
    }