1
0
Fork 0

No issue Null check accessibility manager

master
Emily Kager 2019-04-25 13:54:10 -07:00 committed by Emily Kager
parent 9eaaedf4bd
commit 4ae40b35e0
1 changed files with 2 additions and 2 deletions

View File

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