mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-08 12:02:33 +01:00
Remove ads settings as they were never used
This commit is contained in:
parent
7bb6a233ca
commit
d84b2345bf
@ -77,8 +77,6 @@ class OldPrefs @Inject internal constructor(factory: KPrefFactory) :
|
||||
|
||||
var showSuggestedGroups: Boolean by kpref("suggested_groups_feed", true)
|
||||
|
||||
var showFacebookAds: Boolean by kpref("facebook_ads", false)
|
||||
|
||||
var showStories: Boolean by kpref("show_stories", true)
|
||||
|
||||
var animate: Boolean by kpref("fancy_animations", true)
|
||||
|
@ -39,8 +39,6 @@ interface FeedPrefs : PrefsBase {
|
||||
|
||||
var showSuggestedPosts: Boolean
|
||||
|
||||
var showFacebookAds: Boolean
|
||||
|
||||
var showStories: Boolean
|
||||
|
||||
var mainActivityLayoutType: Int
|
||||
@ -85,12 +83,6 @@ class FeedPrefsImpl @Inject internal constructor(factory: KPrefFactory, oldPrefs
|
||||
|
||||
override var showSuggestedPosts: Boolean by kpref("suggested_posts_feed", true)
|
||||
|
||||
override var showFacebookAds: Boolean by
|
||||
kpref(
|
||||
"facebook_ads",
|
||||
oldPrefs.showFacebookAds, /* false */
|
||||
)
|
||||
|
||||
override var showStories: Boolean by kpref("show_stories", oldPrefs.showStories /* true */)
|
||||
|
||||
override var mainActivityLayoutType: Int by
|
||||
|
@ -118,7 +118,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() {
|
||||
CssHider.NON_RECENT.maybe(
|
||||
(web.url?.contains("?sk=h_chr") ?: false) && prefs.aggressiveRecents
|
||||
),
|
||||
CssHider.ADS.maybe(!prefs.showFacebookAds),
|
||||
CssHider.ADS,
|
||||
CssHider.POST_ACTIONS.maybe(!prefs.showPostActions),
|
||||
CssHider.POST_REACTIONS.maybe(!prefs.showPostReactions),
|
||||
CssAsset.FullSizeImage.maybe(prefs.fullSizeImage),
|
||||
|
Loading…
Reference in New Issue
Block a user