Skip to content

Commit

Permalink
Fixes hover tab buttons hover issues in Android 26 (#2843)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Feb 25, 2020
1 parent c208851 commit 0332cd5
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,6 @@ public void setSelected(boolean selected) {
@Override
public void onHoverChanged(boolean aHovered) {
super.onHoverChanged(aHovered);
if (!aHovered) {
mSendTabButton.setHovered(false);
mCloseButton.setHovered(false);
}
updateState();
}

Expand Down Expand Up @@ -320,7 +316,8 @@ public void onBitmapChanged(Session aSession, Bitmap aBitmap) {
AnimationHelper.animateViewPadding(view,
mMaxIconPadding,
mMinIconPadding,
ICON_ANIMATION_DURATION);
ICON_ANIMATION_DURATION,
this::updateState);
post(() -> setHovered(true));
return false;

Expand All @@ -329,7 +326,7 @@ public void onBitmapChanged(Session aSession, Bitmap aBitmap) {
mMinIconPadding,
mMaxIconPadding,
ICON_ANIMATION_DURATION,
null);
this::updateState);
setHovered(false);
return false;
}
Expand Down

0 comments on commit 0332cd5

Please sign in to comment.