diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-04 22:43:17 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-04 22:43:17 -0600 |
commit | 567e44880a35946d5bc09807fc3edfb19ce9816a (patch) | |
tree | eac427d660bea29c19537260e485609517057c1a /androidApp/src/main/java/mx | |
parent | a43ed464b9dc0f7700e87e70bb60c588628d89a0 (diff) | |
download | etbsa-trackermap-mobile-567e44880a35946d5bc09807fc3edfb19ce9816a.tar.gz etbsa-trackermap-mobile-567e44880a35946d5bc09807fc3edfb19ce9816a.tar.bz2 etbsa-trackermap-mobile-567e44880a35946d5bc09807fc3edfb19ce9816a.zip |
Changed Button to MaterialButton
Diffstat (limited to 'androidApp/src/main/java/mx')
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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 |