summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2013-08-30 13:56:05 -0700
committerScott Main <smain@google.com>2013-08-30 14:26:56 -0700
commitc27ea258d2790f3f38bfc64c90f32fe0cbcc35a7 (patch)
tree53faecfc4be96a0e60152a11c1c6dbb13c87f5b4 /core/java
parent2ef3952d8e62b71baca176b3e17315a37facd34a (diff)
downloadframeworks_base-c27ea258d2790f3f38bfc64c90f32fe0cbcc35a7.zip
frameworks_base-c27ea258d2790f3f38bfc64c90f32fe0cbcc35a7.tar.gz
frameworks_base-c27ea258d2790f3f38bfc64c90f32fe0cbcc35a7.tar.bz2
clarify javadoc for constructors.
bug: 10563421 Change-Id: Ifa898005a13f987e4de07d1a34cb3b289d533256
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/GestureDetector.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/core/java/android/view/GestureDetector.java b/core/java/android/view/GestureDetector.java
index 28c1058..6bbfe0f 100644
--- a/core/java/android/view/GestureDetector.java
+++ b/core/java/android/view/GestureDetector.java
@@ -323,7 +323,7 @@ public class GestureDetector {
/**
* Creates a GestureDetector with the supplied listener.
- * You may only use this constructor from a UI thread (this is the usual situation).
+ * You may only use this constructor from a {@link android.os.Looper} thread.
* @see android.os.Handler#Handler()
*
* @param context the application's context
@@ -337,14 +337,14 @@ public class GestureDetector {
}
/**
- * Creates a GestureDetector with the supplied listener.
- * You may only use this constructor from a UI thread (this is the usual situation).
+ * Creates a GestureDetector with the supplied listener that runs deferred events on the
+ * thread associated with the supplied {@link android.os.Handler}.
* @see android.os.Handler#Handler()
*
* @param context the application's context
* @param listener the listener invoked for all the callbacks, this must
* not be null.
- * @param handler the handler to use
+ * @param handler the handler to use for running deferred listener events.
*
* @throws NullPointerException if {@code listener} is null.
*/
@@ -362,14 +362,15 @@ public class GestureDetector {
}
/**
- * Creates a GestureDetector with the supplied listener.
- * You may only use this constructor from a UI thread (this is the usual situation).
+ * Creates a GestureDetector with the supplied listener that runs deferred events on the
+ * thread associated with the supplied {@link android.os.Handler}.
* @see android.os.Handler#Handler()
*
* @param context the application's context
* @param listener the listener invoked for all the callbacks, this must
* not be null.
- * @param handler the handler to use
+ * @param handler the handler to use for running deferred listener events.
+ * @param unused currently not used.
*
* @throws NullPointerException if {@code listener} is null.
*/