-
Notifications
You must be signed in to change notification settings - Fork 440
Conversation
fcac446
to
5cb54b8
Compare
Code changed to include settings option, so would be good to get a re-review |
@@ -548,8 +559,15 @@ class Tab: NSObject { | |||
return | |||
} | |||
|
|||
updatePullToRefreshVisibility() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't we already covering this case inside BVC preferencesDidChange
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this call happens whenever a URL changes in the tab's web view (since we dont want pull to refresh on local pages at all). The BVC pref observation only ensures that it updates any visible tabs refresh control when a user flips that pref on/off
@@ -484,6 +484,9 @@ extension Strings { | |||
public static let defaultBrowserCalloutCloseAccesabilityLabel = | |||
NSLocalizedString("defaultBrowserCalloutCloseAccesabilityLabel", tableName: "BraveShared", | |||
bundle: .braveShared, value: "Close default browser callout", comment: "") | |||
public static let enablePullToRefresh = | |||
NSLocalizedString("enablePullToRefresh", tableName: "BraveShared", | |||
bundle: .braveShared, value: "Enable Pull-to-refresh", comment: "Describes whether or not the feature that allows the user to pull down from the top of a web page a certain amount before it triggers a page refresh") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this real text value? Enable Pull-to-refresh
looks not matching with rest of the options because of dash usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's real, James proposed it
Summary of Changes
This pull request fixes #916
Submitter Checklist:
NSLocalizableString()
Test Plan:
Reviewer Checklist:
QA/(Yes|No)
release-notes/(include|exclude)
bug
/enhancement