summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2022-11-01 23:52:56 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-11-01 23:52:56 +0000
commitf65ce2308b56628ff9d721aa74b5e3152bcdb8c2 (patch)
treeeb3ceb416ee8bc60298a4caed366101e114f3a43
parentc74f8295a996ebb96c0efefbdce5c67e772ef036 (diff)
parentc4409a13be4649749f0087b5465979d6fc4a5c27 (diff)
Merge "Add threading comments for the delegate initiation callback"
-rw-r--r--core/java/android/view/HandwritingDelegateConfiguration.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/HandwritingDelegateConfiguration.java b/core/java/android/view/HandwritingDelegateConfiguration.java
index 524bb4ca68ab..719c614f42f0 100644
--- a/core/java/android/view/HandwritingDelegateConfiguration.java
+++ b/core/java/android/view/HandwritingDelegateConfiguration.java
@@ -47,7 +47,7 @@ public class HandwritingDelegateConfiguration {
* @param delegatorViewId identifier of the delegator editor view for which handwriting mode
* should be initiated
* @param initiationCallback callback called when a stylus {@link MotionEvent} occurs within
- * this view's bounds
+ * this view's bounds. This will be called from the UI thread.
*/
public HandwritingDelegateConfiguration(
@IdRes int delegatorViewId, @NonNull Runnable initiationCallback) {
@@ -65,7 +65,7 @@ public class HandwritingDelegateConfiguration {
/**
* Returns the callback which should be called when a stylus {@link MotionEvent} occurs within
- * the delegate view's bounds.
+ * the delegate view's bounds. The callback should only be called from the UI thread.
*/
@NonNull
public Runnable getInitiationCallback() {