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

Commit 81be3fdc authored by Yohei Yukawa's avatar Yohei Yukawa Committed by android-build-merger
Browse files

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

am: ec52757e

Change-Id: Ia35a97362a467b452abf8649d3ac30b61a410560
parents 6b3afe71 ec52757e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.content.pm.PackageManager;
import android.graphics.Rect;
import android.inputmethodservice.InputMethodService;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
@@ -2249,7 +2250,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 ==