diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-02-08 21:48:16 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-02-08 21:48:16 -0600 |
commit | 17add53388caa3f5b21c8666e1e667fe42639af5 (patch) | |
tree | 6930cd145bd97bfccdea51a9116fd8feecb1416b | |
parent | b92214eb057fb0cad1fb8f02ad1e1660abe5a19c (diff) | |
parent | 4deec59962afcaabd6f136b71fbd654e7526efad (diff) | |
download | etbsa-trackermap-mobile-17add53388caa3f5b21c8666e1e667fe42639af5.tar.gz etbsa-trackermap-mobile-17add53388caa3f5b21c8666e1e667fe42639af5.tar.bz2 etbsa-trackermap-mobile-17add53388caa3f5b21c8666e1e667fe42639af5.zip |
Merge remote-tracking branch 'refs/remotes/origin/ios_app'
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt | 2 | ||||
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt index f8c236e..aa92c91 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt @@ -64,7 +64,7 @@ open class TrackerApp : Application() { viewModel { LoginViewModel() } viewModel { UnitInformationViewModel(get()) } - viewModel { UnitCommandsViewModel(get()) } + viewModel { UnitCommandsViewModel() } viewModel { UnitsViewModel(get()) } viewModel { UnitReportsViewModel(get()) } viewModel { UserInformationViewModel() } diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt index 312d67e..d1b1e69 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt @@ -23,16 +23,13 @@ import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import kotlinx.coroutines.DelicateCoroutinesApi import kotlinx.coroutines.launch -import mx.trackermap.TrackerMap.client.apis.CommandsApi import mx.trackermap.TrackerMap.client.models.Command import mx.trackermap.TrackerMap.controllers.CommandsController import org.koin.core.component.KoinComponent import org.koin.core.component.inject @DelicateCoroutinesApi -class UnitCommandsViewModel( - private val commandsApi: CommandsApi -) : ViewModel(), KoinComponent { +class UnitCommandsViewModel : ViewModel(), KoinComponent { private val commandsController: CommandsController by inject() |