diff options
author | Allan Wang <me@allanwang.ca> | 2017-09-16 01:34:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-16 01:34:45 -0400 |
commit | 43946902504c1aa5c1217e3fe802697566db4c03 (patch) | |
tree | a10c09b74f42ef69b1c5a72f947040dd0b3d03a2 /app/src/main/kotlin/com/pitchedapps/frost/web | |
parent | 33ca5b2762e0dca515a54a715845ce816215de7a (diff) | |
download | frost-43946902504c1aa5c1217e3fe802697566db4c03.tar.gz frost-43946902504c1aa5c1217e3fe802697566db4c03.tar.bz2 frost-43946902504c1aa5c1217e3fe802697566db4c03.zip |
Feature/recents (#290)
* Create toggle for aggressive recents
* Add toggle
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt index a961972f..253b4a9b 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt @@ -11,8 +11,8 @@ import com.pitchedapps.frost.activities.LoginActivity import com.pitchedapps.frost.activities.MainActivity import com.pitchedapps.frost.activities.SelectorActivity import com.pitchedapps.frost.activities.WebOverlayActivity +import com.pitchedapps.frost.enums.FeedSort import com.pitchedapps.frost.facebook.FB_URL_BASE -import com.pitchedapps.frost.facebook.FbCookie import com.pitchedapps.frost.facebook.FbItem import com.pitchedapps.frost.injectors.* import com.pitchedapps.frost.utils.* @@ -74,7 +74,8 @@ open class FrostWebViewClient(val webCore: FrostWebViewCore) : BaseWebViewClient CssHider.CORE, CssHider.PEOPLE_YOU_MAY_KNOW.maybe(!Prefs.showSuggestedFriends && IS_FROST_PRO), Prefs.themeInjector, - CssHider.NON_RECENT.maybe(webCore.url?.contains("?sk=h_chr") ?: false)) + CssHider.NON_RECENT.maybe((webCore.url?.contains("?sk=h_chr") ?: false) + && Prefs.aggressiveRecents)) } override fun onPageFinished(view: WebView, url: String?) { |