2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00
This commit is contained in:
Emily Kager 2019-05-02 14:28:57 -07:00 committed by Colin Lee
parent 7a44428d56
commit 5bdc6653a4

View File

@ -690,13 +690,11 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope,
// Stop toolbar from collapsing if TalkBack is enabled or page is loading // Stop toolbar from collapsing if TalkBack is enabled or page is loading
val accessibilityManager = context val accessibilityManager = context
?.getSystemService(Context.ACCESSIBILITY_SERVICE) as? AccessibilityManager ?.getSystemService(Context.ACCESSIBILITY_SERVICE) as? AccessibilityManager
if (accessibilityManager?.isTouchExplorationEnabled == false) { if (loading || accessibilityManager?.isTouchExplorationEnabled == true) {
if (!loading) { (behavior as? BrowserToolbarBottomBehavior)?.forceExpand(toolbarView)
behavior = BrowserToolbarBottomBehavior(context, null) behavior = null
} else { } else {
(behavior as? BrowserToolbarBottomBehavior)?.forceExpand(toolbarView) behavior = BrowserToolbarBottomBehavior(context, null)
behavior = null
}
} }
} }
} }