Skip to content

Commit cf20dc4

Browse files
committed
fix crash on first start
1 parent bfe1667 commit cf20dc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/net/vonforst/evmap/fragment/MapFragment.kt

+1
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ class MapFragment : Fragment(), OnMapReadyCallback, MenuProvider {
341341
binding.appLogo.root.animate().alpha(0f).apply {
342342
startDelay = 1000
343343
}.withEndAction {
344+
if (_binding == null) return@withEndAction
344345
binding.appLogo.root.visibility = View.GONE
345346
binding.search.visibility = View.VISIBLE
346347
binding.search.alpha = 0f

0 commit comments

Comments
 (0)