diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-12 22:39:04 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-12 22:39:04 -0600 |
commit | a13e418f74397653e028e38084f0f8f09492419e (patch) | |
tree | 7d9e848c5bd836182a9fb8592271b553ee1b3895 /androidApp/src/main/java/mx/trackermap/TrackerMap/android/details | |
parent | da52a594e73b4fa118dbe7349565a8902755d506 (diff) | |
download | etbsa-trackermap-mobile-a13e418f74397653e028e38084f0f8f09492419e.tar.gz etbsa-trackermap-mobile-a13e418f74397653e028e38084f0f8f09492419e.tar.bz2 etbsa-trackermap-mobile-a13e418f74397653e028e38084f0f8f09492419e.zip |
Implemented map layer switching and updated strings.xml
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/details')
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt index 27d8756..504cac8 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt @@ -4,6 +4,7 @@ import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity import com.google.android.material.tabs.TabLayoutMediator +import mx.trackermap.TrackerMap.android.R import mx.trackermap.TrackerMap.android.databinding.DetailsActivityBinding import mx.trackermap.TrackerMap.android.devices.Action @@ -44,9 +45,9 @@ class DetailsActivity : AppCompatActivity() { binding.detailsPager.adapter = adapter TabLayoutMediator(binding.detailsTabs, binding.detailsPager) { tab, position -> tab.text = when (position) { - 0 -> "Details" - 1 -> "Reports" - else -> "Commands" + 0 -> getString(R.string.unit_details) + 1 -> getString(R.string.unit_reports) + else -> getString(R.string.unit_commands) } }.attach() binding.detailsPager.setCurrentItem( |