diff --git a/play-services-location/core/src/main/kotlin/org/microg/gms/location/ui/LocationPreferencesFragment.kt b/play-services-location/core/src/main/kotlin/org/microg/gms/location/ui/LocationPreferencesFragment.kt index 41eb4c269a..f481cf06cd 100644 --- a/play-services-location/core/src/main/kotlin/org/microg/gms/location/ui/LocationPreferencesFragment.kt +++ b/play-services-location/core/src/main/kotlin/org/microg/gms/location/ui/LocationPreferencesFragment.kt @@ -220,7 +220,7 @@ class LocationPreferencesFragment : PreferenceFragmentCompat() { } if (source.suggested) subView.findViewById(R.id.suggested_tag).visibility = View.VISIBLE unselectHandlerMap[source.id] = { - subView.findViewById(android.R.id.button1).setImageResource(org.microg.gms.base.core.R.drawable.ic_radio_unchecked) + subView.findViewById(R.id.radio_button).setImageResource(org.microg.gms.base.core.R.drawable.ic_radio_unchecked) if (source.id == OnlineSource.ID_CUSTOM) customView.visibility = View.GONE } val selectedHandler = { @@ -230,7 +230,7 @@ class LocationPreferencesFragment : PreferenceFragmentCompat() { } } if (source.id == OnlineSource.ID_CUSTOM) customView.visibility = View.VISIBLE - subView.findViewById(android.R.id.button1).setImageResource(org.microg.gms.base.core.R.drawable.ic_radio_checked) + subView.findViewById(R.id.radio_button).setImageResource(org.microg.gms.base.core.R.drawable.ic_radio_checked) selectedSourceId = source.id } if (currentSourceId == source.id) selectedHandler.invoke() diff --git a/play-services-location/core/src/main/res/layout/preference_location_online_source.xml b/play-services-location/core/src/main/res/layout/preference_location_online_source.xml index 953fcc56ad..8b65573ac6 100644 --- a/play-services-location/core/src/main/res/layout/preference_location_online_source.xml +++ b/play-services-location/core/src/main/res/layout/preference_location_online_source.xml @@ -17,7 +17,7 @@ app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintBottom_toBottomOf="@android:id/text1" - android:id="@android:id/button1" + android:id="@+id/radio_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="4dp" @@ -28,7 +28,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?attr/textAppearanceListItem" - app:layout_constraintStart_toEndOf="@android:id/button1" + app:layout_constraintStart_toEndOf="@+id/radio_button" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0"