We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b81f23f commit 05886e7Copy full SHA for 05886e7
2 files changed
feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt
@@ -105,7 +105,8 @@ fun HomeRoute(
105
viewModel.updatePermissionRequested(true)
106
}
107
} else {
108
- viewModel.updateAlarmAvailability(false)
+ val isAlarmAvailable = viewModel.getAlarmAvailability()
109
+ viewModel.updateAlarmAvailability(isAlarmAvailable)
110
111
112
feature/home/src/main/java/com/terning/feature/home/HomeViewModel.kt
@@ -252,4 +252,6 @@ class HomeViewModel @Inject constructor(
252
).onFailure(Timber::e)
253
254
255
+
256
+ fun getAlarmAvailability(): Boolean = userRepository.getAlarmAvailable()
257
0 commit comments