Skip to content

Commit

Permalink
Fix brave/brave-ios#7846: Ensure Ads enabled pref is updated correctl…
Browse files Browse the repository at this point in the history
…y when disabling (brave/brave-ios#7847)

This was moved in a 1.57 core bump for the enabling path but missed for the disabling path
  • Loading branch information
kylehickinson authored Aug 8, 2023
1 parent 0706296 commit cb6bdf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Brave/Frontend/Rewards/BraveRewards.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public class BraveRewards: NSObject {
}
self.reportLastAdsUsageP3A()
if !newValue {
self.ads.isEnabled = newValue
self.proposeAdsShutdown()
} else {
self.fetchWalletAndInitializeAds(toggleAds: true)
Expand Down

0 comments on commit cb6bdf1

Please sign in to comment.