From 69da2ab244722926dbdbe5483448019926a6ba5d Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Thu, 24 Oct 2019 11:34:17 -0400 Subject: [PATCH] Fix #1787: Disable user interaction on Rewards button badges --- Client/Frontend/Browser/Toolbars/UrlBar/RewardsButton.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Client/Frontend/Browser/Toolbars/UrlBar/RewardsButton.swift b/Client/Frontend/Browser/Toolbars/UrlBar/RewardsButton.swift index 3fbd6daaa..86b46a8dc 100644 --- a/Client/Frontend/Browser/Toolbars/UrlBar/RewardsButton.swift +++ b/Client/Frontend/Browser/Toolbars/UrlBar/RewardsButton.swift @@ -21,6 +21,7 @@ class RewardsButton: UIButton { } private let notificationsBadgeView = UIView().then { + $0.isUserInteractionEnabled = false $0.backgroundColor = BraveUX.BraveOrange $0.frame = CGRect(x: 19, y: 5, width: 12, height: 12) $0.layer.cornerRadius = 6 @@ -31,6 +32,7 @@ class RewardsButton: UIButton { $0.image = checkmark $0.frame = CGRect(x: 22, y: 2, width: checkmark.size.width, height: checkmark.size.height) $0.isHidden = true + $0.isUserInteractionEnabled = false } override init(frame: CGRect) {