Merge "Binary compatibility stubs for get/setTooltip()"

This commit is contained in:
TreeHugger Robot
2017-01-30 19:07:55 +00:00
committed by Android (Google) Code Review

View File

@@ -24767,6 +24767,13 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
}
/**
* @hide Binary compatibility stub. To be removed when we finalize O APIs.
*/
public void setTooltip(@Nullable CharSequence tooltipText) {
setTooltipText(tooltipText);
}
/**
* Returns the view's tooltip text.
*
@@ -24777,6 +24784,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
return mTooltipInfo != null ? mTooltipInfo.mTooltipText : null;
}
/**
* @hide Binary compatibility stub. To be removed when we finalize O APIs.
*/
@Nullable
public CharSequence getTooltip() {
return getTooltipText();
}
private boolean showTooltip(int x, int y, boolean fromLongClick) {
if (mAttachInfo == null) {
return false;