Merge "Binary compatibility stubs for get/setTooltip()"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6675bbf093
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user