aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-11-21 23:56:20 -0800
committerAllan Wang <me@allanwang.ca>2021-11-21 23:56:20 -0800
commitba458a612610512e28b65bafcf74177ddc77bbbe (patch)
tree0fb3aec423b5db8a06f8f72c97c73df171401e96 /app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
parentc28973319df956c6ce75998b4d213c2da31bf91b (diff)
downloadfrost-ba458a612610512e28b65bafcf74177ddc77bbbe.tar.gz
frost-ba458a612610512e28b65bafcf74177ddc77bbbe.tar.bz2
frost-ba458a612610512e28b65bafcf74177ddc77bbbe.zip
Improve menu loading when going back
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt b/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
index 3cac92af..29473461 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
@@ -61,20 +61,4 @@ class WebFragment : BaseFragment() {
}
super.updateFab(contract)
}
-
- override fun onBackPressed(): Boolean {
- if (baseEnum == FbItem.MENU) {
- val core = core
- val web = core as? WebView
- if (web != null && web.canGoBack() && !web.canGoBackOrForward(-2)) {
- // If menu item + we are at the second last entry, reload the base
- // To properly inflate the menu
- // Related to https://github.com/AllanWang/Frost-for-Facebook/issues/1593
- core.clearHistory()
- core.reloadBase(true)
- return true
- }
- }
- return super.onBackPressed()
- }
}