|
|
@ -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
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|