We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de1530 commit 06b2d86Copy full SHA for 06b2d86
app/src/main/java/me/brisson/algorithm_visualizer/ui/screens/home/HomeScreen.kt
@@ -47,6 +47,7 @@ fun HomeRoute(
47
DisposableEffect(Unit) {
48
onDispose { viewModel.clear() }
49
}
50
+
51
HomeScreen(
52
modifier = modifier.fillMaxSize(),
53
uiState = uiState,
app/src/main/java/me/brisson/algorithm_visualizer/ui/screens/home/HomeViewModel.kt
@@ -18,7 +18,9 @@ class HomeViewModel: ViewModel() {
18
private var _runNewValuesUpdate = true
19
20
fun repeatUpdatingNewValues() = viewModelScope.launch {
21
+ _runNewValuesUpdate = true
22
while (_runNewValuesUpdate) {
23
+ Log.d(TAG, "Updating new values")
24
_uiState.update {
25
it.copy(sortingIntList = List(6) {
26
Random.nextInt(
0 commit comments