From c4b4c94ca4647966be712eb35b6efd9a80de6017 Mon Sep 17 00:00:00 2001 From: EmmaVandewalle Date: Fri, 23 Aug 2024 15:47:06 +0200 Subject: [PATCH] fix: @HiltViewmodel deleted as there is no Inject constructor --- .../writand/screens/editor/bottom/BottomEditorBarViewModel.kt | 2 -- .../writand/screens/editor/editorspace/EditorSpaceViewModel.kt | 1 - .../be/re/writand/screens/editor/top/TopEditorBarViewModel.kt | 1 - 3 files changed, 4 deletions(-) diff --git a/app/src/main/java/be/re/writand/screens/editor/bottom/BottomEditorBarViewModel.kt b/app/src/main/java/be/re/writand/screens/editor/bottom/BottomEditorBarViewModel.kt index 6f2d60e..de6c1e2 100644 --- a/app/src/main/java/be/re/writand/screens/editor/bottom/BottomEditorBarViewModel.kt +++ b/app/src/main/java/be/re/writand/screens/editor/bottom/BottomEditorBarViewModel.kt @@ -10,8 +10,6 @@ import kotlinx.coroutines.flow.asStateFlow * Viewmodel to be used by BottomEditorBar that handles the buttons and what the current * row/column is. */ - -@HiltViewModel class BottomEditorBarViewModel : WViewModel() { private val _row = MutableStateFlow(0) diff --git a/app/src/main/java/be/re/writand/screens/editor/editorspace/EditorSpaceViewModel.kt b/app/src/main/java/be/re/writand/screens/editor/editorspace/EditorSpaceViewModel.kt index 71c7fde..52f2b2d 100644 --- a/app/src/main/java/be/re/writand/screens/editor/editorspace/EditorSpaceViewModel.kt +++ b/app/src/main/java/be/re/writand/screens/editor/editorspace/EditorSpaceViewModel.kt @@ -9,7 +9,6 @@ import javax.inject.Inject /** * Viewmodel to be used by EditorSpace to handle file changes and keep the ui state in memory. */ -@HiltViewModel class EditorSpaceViewModel : WViewModel() { private val _uiState: MutableStateFlow = diff --git a/app/src/main/java/be/re/writand/screens/editor/top/TopEditorBarViewModel.kt b/app/src/main/java/be/re/writand/screens/editor/top/TopEditorBarViewModel.kt index 0f230fd..5b48e19 100644 --- a/app/src/main/java/be/re/writand/screens/editor/top/TopEditorBarViewModel.kt +++ b/app/src/main/java/be/re/writand/screens/editor/top/TopEditorBarViewModel.kt @@ -9,7 +9,6 @@ import kotlinx.coroutines.flow.asStateFlow /** * View model to be used by TopEditorBar handling the buttons and saving of the file. */ -@HiltViewModel class TopEditorBarViewModel : WViewModel() { private val _saved = MutableStateFlow(true)