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

Commit 3ca244c3 authored by Antonio Kantek's avatar Antonio Kantek Committed by Android (Google) Code Review
Browse files

Merge "Remove IPC setInTouchMode call from ViewRootImpl" into main

parents 4445143c 607db125
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -1151,14 +1151,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;
    }

    /**