Aperture: Remove newlines in permission checking methods
Change-Id: I9af23eed5e447556932b73883aa09084da92049c
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
index 2cebb33..de2136b 100644
--- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -869,15 +869,11 @@
}
private fun allPermissionsGranted() = REQUIRED_PERMISSIONS.all {
- ContextCompat.checkSelfPermission(
- baseContext, it
- ) == PackageManager.PERMISSION_GRANTED
+ ContextCompat.checkSelfPermission(baseContext, it) == PackageManager.PERMISSION_GRANTED
}
private fun allLocationPermissionsGranted() = REQUIRED_PERMISSIONS_LOCATION.all {
- ContextCompat.checkSelfPermission(
- baseContext, it
- ) == PackageManager.PERMISSION_GRANTED
+ ContextCompat.checkSelfPermission(baseContext, it) == PackageManager.PERMISSION_GRANTED
}
private fun updateGalleryButton(uri: Uri?, enable: Boolean = true) {