Skip to content

Commit

Permalink
style: run ktfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
taghizadlaura committed Oct 17, 2024
1 parent 17650ae commit 1798a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/com/android/periodpals/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ class MainActivity : ComponentActivity() {
locationPermissionGranted = true
} else {
// **Request permission**
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.ACCESS_FINE_LOCATION), LOCATION_PERMISSION_REQUEST_CODE)
ActivityCompat.requestPermissions(
this, arrayOf(Manifest.permission.ACCESS_FINE_LOCATION), LOCATION_PERMISSION_REQUEST_CODE)
}
}

Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/android/periodpals/ui/map/Map.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ fun MapScreen(modifier: Modifier = Modifier, locationPermissionGranted: Boolean)
// Center the map on EPFL Campus initially
mapView.controller.setCenter(DEFAULT_LOCATION)


// Check if location permission is granted before accessing location
if (locationPermissionGranted) {
try {
Expand Down

0 comments on commit 1798a73

Please sign in to comment.