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
This commit is contained in:
Clara Bayarri
2015-05-21 17:45:19 +01:00
parent d457c71eca
commit e95cc176bb

View File

@@ -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) {