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 | 956ae12a22a5d4895ec7bbca5c35a98a66acbe61 (patch) | |
tree | 88cf50a895b19603699ebec4afc5fafd0442e339 /androidApp/src/main/java/mx/trackermap | |
parent | 3e15173c529b2b307e813288f4728f5110fb5a78 (diff) | |
download | etbsa-trackermap-mobile-956ae12a22a5d4895ec7bbca5c35a98a66acbe61.tar.gz etbsa-trackermap-mobile-956ae12a22a5d4895ec7bbca5c35a98a66acbe61.tar.bz2 etbsa-trackermap-mobile-956ae12a22a5d4895ec7bbca5c35a98a66acbe61.zip |
Changed Button to MaterialButton
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap')
-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 |