aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-12 23:11:46 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-12 23:11:46 -0600
commit2bdf011e61db6899a3a44a5357a0100b045767f9 (patch)
treeb300c73fa93f4da8e8feef017ad6d6c85d75d410 /androidApp/src/main/java/mx/trackermap
parenta13e418f74397653e028e38084f0f8f09492419e (diff)
downloadetbsa-trackermap-mobile-2bdf011e61db6899a3a44a5357a0100b045767f9.tar.gz
etbsa-trackermap-mobile-2bdf011e61db6899a3a44a5357a0100b045767f9.tar.bz2
etbsa-trackermap-mobile-2bdf011e61db6899a3a44a5357a0100b045767f9.zip
Improved design of commands
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsFragment.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsFragment.kt
index bb462ef..b0aab3e 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsFragment.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsFragment.kt
@@ -8,6 +8,7 @@ import android.view.ViewGroup
import android.widget.ArrayAdapter
import androidx.fragment.app.Fragment
import kotlinx.coroutines.DelicateCoroutinesApi
+import mx.trackermap.TrackerMap.android.R
import mx.trackermap.TrackerMap.android.databinding.UnitDetailsCommandsBinding
import mx.trackermap.TrackerMap.android.details.UnitDetailsAdapter
import org.koin.androidx.viewmodel.ext.android.viewModel
@@ -44,7 +45,7 @@ class UnitCommandsFragment: Fragment() {
unitCommandsViewModel.commands.observe(viewLifecycleOwner) { commands ->
Log.d("UnitCommandsFragment", "Device commands - $commands")
val context = activity!!.applicationContext
- val adapter = ArrayAdapter<String>(context, android.R.layout.simple_list_item_1)
+ val adapter = ArrayAdapter<String>(context, R.layout.simple_list_item_checked)
adapter.addAll(commands.map { it.description })
binding.commandsList.adapter = adapter
}