File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
android/src/main/java/com/rngooglemapsplus Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import com.google.android.gms.location.LocationServices
1919import com.google.android.gms.location.LocationSettingsRequest
2020import com.google.android.gms.location.Priority
2121import com.google.android.gms.maps.LocationSource
22+ import com.rngooglemapsplus.extensions.onUi
2223import com.rngooglemapsplus.extensions.toLocationErrorCode
2324
2425private const val REQ_LOCATION_SETTINGS = 2001
@@ -64,8 +65,8 @@ class LocationHandler(
6465 }
6566
6667 fun showLocationDialog () {
67- UiThreadUtil .runOnUiThread {
68- val activity = context.currentActivity ? : run { return @runOnUiThread }
68+ onUi {
69+ val activity = context.currentActivity ? : run { return @onUi }
6970
7071 val lr =
7172 if (Build .VERSION .SDK_INT >= 31 ) {
You can’t perform that action at this time.
0 commit comments