diff options
author | Gilles Debunne <debunne@google.com> | 2010-08-19 17:59:08 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-19 17:59:08 -0700 |
commit | d018a0ce72124f668d859b19fe3e73f5637d3c7c (patch) | |
tree | 48f1c45f7207fd3af0358e62b4b900ac47e09b6c /core/java/android/view/View.java | |
parent | 70c9ffbc838271f0ea27a4780eb146287de53ef6 (diff) | |
parent | b0d6ba1ec4f71b96cab7d1ff62b846d5cf162c4f (diff) | |
download | frameworks_base-d018a0ce72124f668d859b19fe3e73f5637d3c7c.zip frameworks_base-d018a0ce72124f668d859b19fe3e73f5637d3c7c.tar.gz frameworks_base-d018a0ce72124f668d859b19fe3e73f5637d3c7c.tar.bz2 |
Merge "Text selection without trackball." into gingerbread
Diffstat (limited to 'core/java/android/view/View.java')
-rw-r--r-- | core/java/android/view/View.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index b8623e7..c9662ff 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -2413,11 +2413,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility } /** - * Call this view's OnLongClickListener, if it is defined. Invokes the context menu - * if the OnLongClickListener did not consume the event. + * Call this view's OnLongClickListener, if it is defined. Invokes the context menu if the + * OnLongClickListener did not consume the event. * - * @return True there was an assigned OnLongClickListener that was called, false - * otherwise is returned. + * @return True if one of the above receivers consumed the event, false otherwise. */ public boolean performLongClick() { sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED); @@ -4218,6 +4217,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility * Show the context menu for this view. It is not safe to hold on to the * menu after returning from this method. * + * You should normally not overload this method. Overload + * {@link #onCreateContextMenu(ContextMenu)} or define an + * {@link OnCreateContextMenuListener} to add items to the context menu. + * * @param menu The context menu to populate */ public void createContextMenu(ContextMenu menu) { |