Skip to content

Commit

Permalink
Fix tooltip for Android 8 (#2863)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Feb 25, 2020
1 parent 85351a7 commit 9c46f31
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import androidx.annotation.Dimension;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.BindingAdapter;

import org.mozilla.vrbrowser.R;
Expand Down Expand Up @@ -164,4 +165,9 @@ public static void setPrivateMode(@NonNull UITextButton button, boolean isPrivat
button.setPrivateMode(isPrivateMode);
}

@BindingAdapter("android:tooltipText")
public static void setTooltipText(@NonNull UIButton button, @Nullable String text){
button.setTooltipText(text);
}

}

0 comments on commit 9c46f31

Please sign in to comment.