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

Commit 607db125 authored by Antonio Kantek's avatar Antonio Kantek
Browse files

Remove IPC setInTouchMode call from ViewRootImpl

Fix: 143174366
Test: atest FrameworksCoreTests CtsInputMethodTestCases
Test: atest CarRotaryControllerUnitTests
Test: manual (verified touch mode state using rotary controller)

Change-Id: I0c76f72c7721ca49bb8eae26f652e9ff022ec3b4
parent 71a57780
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -1146,14 +1146,10 @@ public final class ViewRootImpl implements ViewParent,
    }

    private boolean isInTouchMode() {
        IWindowManager windowManager = WindowManagerGlobal.getWindowManagerService();
        if (windowManager != null) {
            try {
                return windowManager.isInTouchMode(getDisplayId());
            } catch (RemoteException e) {
        if (mAttachInfo == null) {
            return mContext.getResources().getBoolean(R.bool.config_defaultInTouchMode);
        }
        }
        return false;
        return mAttachInfo.mInTouchMode;
    }

    /**