diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index e8535cdb61e8f..597c051fb2713 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -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;