Skip to content

Commit a25e80b

Browse files
committed
Don't show the empty view if viewModel.timerInfo is null
1 parent 3c88bf2 commit a25e80b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app-timer-list/src/main/java/xyz/aprildown/timer/app/timer/list/TimerFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ class TimerFragment :
625625
}
626626
TipManager.TIP_NO_MORE -> {
627627
binding.layoutTip.gone()
628-
binding.viewEmpty.isVisible = viewModel.timerInfo.value.isNullOrEmpty()
628+
binding.viewEmpty.isVisible = viewModel.timerInfo.value?.isEmpty() == true
629629
}
630630
}
631631
}

0 commit comments

Comments
 (0)