Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #2682: NTP learn more secondary button actions. (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub authored Jul 2, 2020
1 parent 4d9a1c2 commit ce39001
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,13 @@ extension NTPLearnMoreViewController {
.forEach(stackView.addArrangedSubview(_:))
}

private let learnMoreButton = secondaryButton(title: nil).then {
$0.addTarget(self, action: #selector(learnMoreButtonAction), for: .touchDown)
private lazy var learnMoreButton = secondaryButton(title: nil).then {
$0.addTarget(self, action: #selector(learnMoreButtonAction), for: .touchUpInside)
}

private let hideSponsoredImageButton = secondaryButton(title: Strings.NTP.hideSponsoredImages).then {
$0.addTarget(self, action: #selector(hideSponsoredImagesAction), for: .touchDown)
private lazy var hideSponsoredImageButton =
secondaryButton(title: Strings.NTP.hideSponsoredImages).then {
$0.addTarget(self, action: #selector(hideSponsoredImagesAction), for: .touchUpInside)
}

private let config: NTPNotificationLearnMoreViewConfig
Expand Down

0 comments on commit ce39001

Please sign in to comment.