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

Commit fc177586 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Simplify input channel creation

We don't need to make a copy of InputChannel when creating a gesture
monitor.

Bug: 323450804
Test: presubmit
Flag: EXEMPT refactor
Change-Id: I7eed4c07c3c14ca8bafea04494ae7d997b61bbe4
parent 74f25d46
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ import android.hardware.display.DisplayManagerInternal;
import android.hardware.display.DisplayTopologyGraph;
import android.hardware.display.DisplayViewport;
import android.hardware.input.AidlInputGestureData;
import android.hardware.input.AppLaunchData;
import android.hardware.input.HostUsiVersion;
import android.hardware.input.IInputDeviceBatteryListener;
import android.hardware.input.IInputDeviceBatteryState;
@@ -838,10 +837,7 @@ public class InputManagerService extends IInputManager.Stub
                    new GestureMonitorSpyWindow(monitorToken, name, displayId, pid, uid, sc,
                            channel));
        }

        final InputChannel outInputChannel = new InputChannel();
        channel.copyTo(outInputChannel);
        return outInputChannel;
        return channel;
    }

    private void removeSpyWindowGestureMonitor(@NonNull IBinder inputChannelToken) {