diff options
author | Allan Wang <me@allanwang.ca> | 2021-01-24 19:52:51 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-01-24 19:52:51 -0800 |
commit | 4c2c8a9ce4872e8bbb2a55c8b527e4f7b22ef633 (patch) | |
tree | 0c77bd9dbca861827b3725c4e5a13618c2efb021 /app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt | |
parent | 58068ce55e9e203a77c67dfee78fb2658e3bb6aa (diff) | |
download | frost-4c2c8a9ce4872e8bbb2a55c8b527e4f7b22ef633.tar.gz frost-4c2c8a9ce4872e8bbb2a55c8b527e4f7b22ef633.tar.bz2 frost-4c2c8a9ce4872e8bbb2a55c8b527e4f7b22ef633.zip |
Add option to log out for messenger
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt index ecd8c093..887d17f0 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostWebView.kt @@ -29,6 +29,7 @@ import ca.allanwang.kau.utils.launchMain import com.pitchedapps.frost.contracts.FrostContentContainer import com.pitchedapps.frost.contracts.FrostContentCore import com.pitchedapps.frost.contracts.FrostContentParent +import com.pitchedapps.frost.contracts.onTabLongClicked import com.pitchedapps.frost.db.CookieDao import com.pitchedapps.frost.db.currentCookie import com.pitchedapps.frost.facebook.FB_HOME_URL @@ -196,6 +197,10 @@ class FrostWebView @JvmOverloads constructor( private fun smoothScrollBy(y: Int) = smoothScrollTo(max(0, scrollY + y)) + override fun onTabLongClicked() { + onTabLongClicked(context, prefs, fbCookie, cookieDao) + } + override var active: Boolean = true set(value) { if (field == value) return |