diff options
| author | 2022-10-12 21:36:31 +0000 | |
|---|---|---|
| committer | 2022-10-12 21:36:31 +0000 | |
| commit | 26c3d22a2c38386629e7b8ffa5890a66f177d430 (patch) | |
| tree | 8c8548d41e2a088c188ab12d9994bc84535a6774 | |
| parent | 1b952f2bc7758a9d6c242513fee24fbac400e92b (diff) | |
| parent | f1cd9e468ce731b20aff45236c6d75c0424c53a0 (diff) | |
Merge "Update View#isInTouchMode javadoc"
| -rw-r--r-- | core/java/android/view/View.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 5c899e489347..7b6ebf7cd9b8 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -15905,15 +15905,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } /** - * Returns whether the device is currently in touch mode. Touch mode is entered - * once the user begins interacting with the device by touch, and affects various - * things like whether focus is always visible to the user. + * Returns the touch mode state associated with this view. * - * If this view has no {@link ViewRootImpl} or {@link Display} attached, then it will return - * the default touch mode value defined in + * Attached views return the touch mode state from the associated window's display. + * Detached views just return the default touch mode value defined in * {@code com.android.internal.R.bool.config_defaultInTouchMode}. * - * @return Whether the device is in touch mode. + * Touch mode is entered once the user begins interacting with the device by touch, and + * affects various things like whether focus highlight is always visible to the user. + * + * @return the touch mode state associated with this view */ @ViewDebug.ExportedProperty public boolean isInTouchMode() { |