diff options
| author | 2015-05-21 17:45:19 +0100 | |
|---|---|---|
| committer | 2015-05-21 17:45:19 +0100 | |
| commit | e95cc176bb6b4577ec8dcc0f37a6efe6ca40e9bd (patch) | |
| tree | 1147eb4350be2db16e6a94eff6c3fe03fcfc608b | |
| parent | d457c71eca2a0522793376a873dcdad318a2f798 (diff) | |
Update the documentation for ActionMode.Callback2#onGetContentRect
Received feedback from a team that it was not clear what the rect
had to include.
Change-Id: I03ca54ee1092e8af3a2078c42104e1ce88490cd1
| -rw-r--r-- | core/java/android/view/ActionMode.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/view/ActionMode.java b/core/java/android/view/ActionMode.java index 9f00455172ea..4b9b59020c04 100644 --- a/core/java/android/view/ActionMode.java +++ b/core/java/android/view/ActionMode.java @@ -343,7 +343,9 @@ public abstract class ActionMode { * @param mode The ActionMode that requires positioning. * @param view The View that originated the ActionMode, in whose coordinates the Rect should * be provided. - * @param outRect The Rect to be populated with the content position. + * @param outRect The Rect to be populated with the content position. Use this to specify + * where the content in your app lives within the given view. This will be used + * to avoid occluding the given content Rect with the created ActionMode. */ public void onGetContentRect(ActionMode mode, View view, Rect outRect) { if (view != null) { |