diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 1144b598e47ad..810fde23dcac7 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -982,8 +982,11 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener /** * The last input source on this TextView. + * + * Use the SOURCE_TOUCHSCREEN as the default value for backward compatibility. There could be a + * non UI event originated ActionMode initiation, e.g. API call, a11y events, etc. */ - private int mLastInputSource = InputDevice.SOURCE_UNKNOWN; + private int mLastInputSource = InputDevice.SOURCE_TOUCHSCREEN; /** * The TextView does not auto-size text (default).