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

Commit 1efc69ef authored by Michael Bestas's avatar Michael Bestas
Browse files

fixup! Introduce high touch polling rate feature control

Change-Id: Ia93a250017e8f8b5991b929747953c00033983c1
parent bd853b84
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3080,8 +3080,10 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
        if (!mLineageHardware.isSupported(LineageHardwareManager.FEATURE_HIGH_TOUCH_POLLING_RATE)) {
            return;
        }
        final boolean enabled = LineageSettings.System.getInt(mContext.getContentResolver(),
                LineageSettings.System.HIGH_TOUCH_POLLING_RATE_ENABLE, 0) == 1;
        // If user is a profile, use preference of its parent profile.
        final int profileParentUserId = mUserManagerInternal.getProfileParentId(mCurrentImeUserId);
        final boolean enabled = LineageSettings.System.getIntForUser(mContext.getContentResolver(),
                LineageSettings.System.HIGH_TOUCH_POLLING_RATE_ENABLE, 0, profileParentUserId) == 1;
        mLineageHardware.set(LineageHardwareManager.FEATURE_HIGH_TOUCH_POLLING_RATE, enabled);
    }