Skip to content

Commit

Permalink
For mozilla-mobile#15402: Use safe cast
Browse files Browse the repository at this point in the history
  • Loading branch information
sijanr committed Oct 8, 2020
1 parent 6146be4 commit b4d5975
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -63,7 +63,7 @@ class TrackingProtectionOverlay(
}
}
ToolbarPosition.TOP -> {
val appBarLayout = getToolbar().parent as AppBarLayout?
val appBarLayout = getToolbar().parent as? AppBarLayout
appBarLayout?.let { appBar ->
if(appBar.y != 0.toFloat()) {
return
Expand Down

0 comments on commit b4d5975

Please sign in to comment.