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

Commit 1502b687 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Remove InputManager.getInstance()

This API has been deprecated for a long time.
With this CL, we completely remove it.

Bug: 277717573
Test: build
Flag: EXEMPT removing an API cannot be flagged
Change-Id: I64f411ec8e19ddeef66b22955fcb6482b9d0e94f
parent 16c05751
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -335,27 +335,6 @@ public final class InputManager {
        mContext = context;
    }

    /**
     * Gets an instance of the input manager.
     *
     *  Warning: The usage of this method is not supported!
     *
     *  @return The input manager instance.
     *  Use {@link Context#getSystemService(Class)}
     *  to obtain the InputManager instance.
     *
     * TODO (b/277717573): Soft remove this API in version V.
     * TODO (b/277039664): Migrate app usage off this API.
     *
     * @hide
     */
    @Deprecated
    @UnsupportedAppUsage
    public static InputManager getInstance() {
        return Objects.requireNonNull(ActivityThread.currentApplication())
                .getSystemService(InputManager.class);
    }

    /**
     * Get the current VelocityTracker strategy.
     * @hide