From e95cc176bb6b4577ec8dcc0f37a6efe6ca40e9bd Mon Sep 17 00:00:00 2001 From: Clara Bayarri Date: Thu, 21 May 2015 17:45:19 +0100 Subject: [PATCH] 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 --- core/java/android/view/ActionMode.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/java/android/view/ActionMode.java b/core/java/android/view/ActionMode.java index 9f00455172eaf..4b9b59020c04a 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) {