No issue Null check accessibility manager

nightly-build-test
Emily Kager 5 years ago committed by Emily Kager
parent 9eaaedf4bd
commit 4ae40b35e0

@ -575,8 +575,8 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
(toolbarView.layoutParams as CoordinatorLayout.LayoutParams).apply {
// Stop toolbar from collapsing if TalkBack is enabled or page is loading
val accessibilityManager = context
?.getSystemService(Context.ACCESSIBILITY_SERVICE) as AccessibilityManager
if (!accessibilityManager.isTouchExplorationEnabled) {
?.getSystemService(Context.ACCESSIBILITY_SERVICE) as? AccessibilityManager
if (accessibilityManager?.isTouchExplorationEnabled == false) {
if (!loading) {
behavior = BrowserToolbarBottomBehavior(context, null)
} else {

Loading…
Cancel
Save