diff options
author | Allan Wang <me@allanwang.ca> | 2021-11-22 12:15:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 12:15:10 -0800 |
commit | eb2e0d07f278eb2079666ffabcbee007173c17af (patch) | |
tree | 1094d0b1de61c927b63b683fce30200ebf6d4012 /app/src/main/kotlin/com/pitchedapps/frost/fragments/WebFragments.kt | |
parent | b9dbef403e4c57b9c252d8b97b10c30d33075ac7 (diff) | |
parent | f448eaf4c21c40778663f2d11b6f6f8ad8855b0f (diff) | |
download | frost-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.kt | 16 |
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() - } } |