Merge "Add maxTargetSdk restriction to IMM fields"

This commit is contained in:
Wilson Wu
2022-10-04 01:22:05 +00:00
committed by Android (Google) Code Review

View File

@@ -549,7 +549,10 @@ public final class InputMethodManager {
*/
@Deprecated
@GuardedBy("mH")
@UnsupportedAppUsage
@UnsupportedAppUsage(trackingBug = 236937383,
maxTargetSdk = Build.VERSION_CODES.UPSIDE_DOWN_CAKE,
publicAlternatives = "Apps should not change behavior based on the currently connected"
+ " IME. If absolutely needed, use {@link InputMethodInfo#getId()} instead.")
String mCurId;
/**
@@ -560,7 +563,9 @@ public final class InputMethodManager {
@Deprecated
@GuardedBy("mH")
@Nullable
@UnsupportedAppUsage
@UnsupportedAppUsage(trackingBug = 236937383,
maxTargetSdk = Build.VERSION_CODES.UPSIDE_DOWN_CAKE,
publicAlternatives = "Use methods on {@link InputMethodManager} instead.")
IInputMethodSession mCurMethod;
/**