Skip to content

Commit

Permalink
No issue Null check accessibility manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ekager committed Apr 25, 2019
1 parent 9eaaedf commit 4ae40b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4ae40b3

Please sign in to comment.