Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 247791f9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow hover tooltips for disabled views."

parents f3630cbe e530c108
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -26890,7 +26890,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (mAttachInfo == null || mTooltipInfo == null) {
        if (mAttachInfo == null || mTooltipInfo == null) {
            return false;
            return false;
        }
        }
        if ((mViewFlags & ENABLED_MASK) != ENABLED) {
        if (fromLongClick && (mViewFlags & ENABLED_MASK) != ENABLED) {
            return false;
            return false;
        }
        }
        if (TextUtils.isEmpty(mTooltipInfo.mTooltipText)) {
        if (TextUtils.isEmpty(mTooltipInfo.mTooltipText)) {
@@ -26938,7 +26938,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
        }
        switch(event.getAction()) {
        switch(event.getAction()) {
            case MotionEvent.ACTION_HOVER_MOVE:
            case MotionEvent.ACTION_HOVER_MOVE:
                if ((mViewFlags & TOOLTIP) != TOOLTIP || (mViewFlags & ENABLED_MASK) != ENABLED) {
                if ((mViewFlags & TOOLTIP) != TOOLTIP) {
                    break;
                    break;
                }
                }
                if (!mTooltipInfo.mTooltipFromLongClick && mTooltipInfo.updateAnchorPos(event)) {
                if (!mTooltipInfo.mTooltipFromLongClick && mTooltipInfo.updateAnchorPos(event)) {