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

Commit 77182584 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Restrict IMM.notifyUserAction() with targetSdkVersion <= P"

parents 61585a80 a086f954
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Rect;
import android.inputmethodservice.InputMethodService;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
@@ -2191,7 +2192,7 @@ public final class InputMethodManager {
     * Notify that a user took some action with this input method.
     * @hide
     */
    @UnsupportedAppUsage
    @UnsupportedAppUsage(trackingBug = 114740982, maxTargetSdk = Build.VERSION_CODES.P)
    public void notifyUserAction() {
        synchronized (mH) {
            if (mLastSentUserActionNotificationSequenceNumber ==