From 775b9dc89fb67333513a24d16852df7c474370cd Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Mon, 30 Jan 2017 10:02:11 -0500 Subject: [PATCH] Binary compatibility stubs for get/setTooltip() Change-Id: I8784ccfd48d8c809b70d7c5c977bcbf44e3f4d47 Fixes: 34798233 Test: n/a --- core/java/android/view/View.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 0657bef2ab69d..2b57b4ed97be4 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -24739,6 +24739,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. * @@ -24749,6 +24756,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;