diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-16 16:40:31 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-16 16:40:31 -0600 |
commit | 22fcedc76d998cba6f8281829ba6c4f120cef691 (patch) | |
tree | 7b552e02604b21f8c0dc883be09c3e5bd7c67637 | |
parent | f5355cf5b6281c8475a06061ac5fc80f7b9cdedf (diff) | |
download | etbsa-trackermap-mobile-22fcedc76d998cba6f8281829ba6c4f120cef691.tar.gz etbsa-trackermap-mobile-22fcedc76d998cba6f8281829ba6c4f120cef691.tar.bz2 etbsa-trackermap-mobile-22fcedc76d998cba6f8281829ba6c4f120cef691.zip |
Removed import of missing class and fixed imports after moving classes to shared
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/DetailsActivity.kt | 12 |
1 files changed, 6 insertions, 6 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 f66a760..aaf7ecb 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 @@ -12,7 +12,7 @@ import com.google.android.material.tabs.TabLayoutMediator import kotlinx.coroutines.DelicateCoroutinesApi import mx.trackermap.TrackerMap.android.R import mx.trackermap.TrackerMap.android.databinding.DetailsActivityBinding -import mx.trackermap.TrackerMap.android.devices.Action +import mx.trackermap.TrackerMap.android.shared.UnitRenderData @DelicateCoroutinesApi class DetailsActivity : AppCompatActivity() { @@ -47,7 +47,7 @@ class DetailsActivity : AppCompatActivity() { private fun initialize() { deviceId = intent.getIntExtra(DEVICE_ID_EXTRA, 0) deviceName = intent.getStringExtra(DEVICE_NAME_EXTRA) ?: "" - val initialSection = intent.getSerializableExtra(ACTION_EXTRA) as Action + val initialSection = intent.getSerializableExtra(ACTION_EXTRA) as UnitRenderData.Action Log.d("DetailsActivity", "Device ID - $deviceId") Log.d("DetailsActivity", "Initial Section - $initialSection") @@ -62,14 +62,14 @@ class DetailsActivity : AppCompatActivity() { }.attach() binding.detailsPager.setCurrentItem( when (initialSection) { - Action.DETAILS -> 0 - Action.REPORTS -> 1 + UnitRenderData.Action.DETAILS -> 0 + UnitRenderData.Action.REPORTS -> 1 else -> 2 }, false ) binding.detailsPager.isUserInputEnabled = when (initialSection) { - Action.DETAILS -> true - Action.REPORTS -> false + UnitRenderData.Action.DETAILS -> true + UnitRenderData.Action.REPORTS -> false else -> true } binding.detailsTabs.addOnTabSelectedListener(object: TabLayout.OnTabSelectedListener { |