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-22 12:15:10 -0800
committerGitHub <noreply@github.com>2021-11-22 12:15:10 -0800
commiteb2e0d07f278eb2079666ffabcbee007173c17af (patch)
tree1094d0b1de61c927b63b683fce30200ebf6d4012 /app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt
parentb9dbef403e4c57b9c252d8b97b10c30d33075ac7 (diff)
parentf448eaf4c21c40778663f2d11b6f6f8ad8855b0f (diff)
downloadfrost-eb2e0d07f278eb2079666ffabcbee007173c17af.tar.gz
frost-eb2e0d07f278eb2079666ffabcbee007173c17af.tar.bz2
frost-eb2e0d07f278eb2079666ffabcbee007173c17af.zip
Merge pull request #1856 from AllanWang/menu-tab
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()
- }
}