Merge "Do not update currently open tooltip." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
139dbe5c1c
@@ -26312,9 +26312,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
mTooltipInfo.mHideTooltipRunnable = this::hideTooltip;
|
mTooltipInfo.mHideTooltipRunnable = this::hideTooltip;
|
||||||
}
|
}
|
||||||
mTooltipInfo.mTooltipText = tooltipText;
|
mTooltipInfo.mTooltipText = tooltipText;
|
||||||
if (mTooltipInfo.mTooltipPopup != null && mTooltipInfo.mTooltipPopup.isShowing()) {
|
|
||||||
mTooltipInfo.mTooltipPopup.updateContent(mTooltipInfo.mTooltipText);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,10 +91,6 @@ public class TooltipPopup {
|
|||||||
return mContentView.getParent() != null;
|
return mContentView.getParent() != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateContent(CharSequence tooltipText) {
|
|
||||||
mMessageView.setText(tooltipText);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void computePosition(View anchorView, int anchorX, int anchorY, boolean fromTouch,
|
private void computePosition(View anchorView, int anchorX, int anchorY, boolean fromTouch,
|
||||||
WindowManager.LayoutParams outParams) {
|
WindowManager.LayoutParams outParams) {
|
||||||
outParams.token = anchorView.getWindowToken();
|
outParams.token = anchorView.getWindowToken();
|
||||||
|
|||||||
Reference in New Issue
Block a user