From 956ae12a22a5d4895ec7bbca5c35a98a66acbe61 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Tue, 4 Jan 2022 22:43:17 -0600 Subject: Changed Button to MaterialButton --- .../TrackerMap/android/details/information/UnitInformationFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/details') diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt index 5addb51..b1c5daf 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt @@ -10,6 +10,7 @@ import android.view.ViewGroup import android.widget.* import androidx.core.widget.TextViewCompat import androidx.fragment.app.Fragment +import com.google.android.material.button.MaterialButton import kotlinx.coroutines.DelicateCoroutinesApi import mx.trackermap.TrackerMap.android.R import mx.trackermap.TrackerMap.android.databinding.UnitDetailsInformationBinding @@ -117,7 +118,7 @@ class UnitInformationFragment : Fragment() { } if (unit.position?.latitude != null && unit.position?.longitude != null) { - val mapButton = Button(context) + val mapButton = MaterialButton(context) mapButton.text = getString(R.string.unit_info_map_button) mapButton.setOnClickListener { val latitude = unit.position!!.latitude -- cgit v1.2.3