From fb0450566383d7165b94522d9c253d1c3698d2f9 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Fri, 11 Jun 2021 10:59:11 +0200 Subject: [PATCH] reformat kotlin Signed-off-by: Andy Scherzinger --- .../talk/controllers/LocationPickerController.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/LocationPickerController.kt b/app/src/main/java/com/nextcloud/talk/controllers/LocationPickerController.kt index f3f53faad..01c48228a 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/LocationPickerController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/LocationPickerController.kt @@ -374,17 +374,19 @@ class LocationPickerController(args: Bundle) : fun isCoarseLocationGranted(): Boolean { return PermissionChecker.checkSelfPermission( context!!, - Manifest.permission.ACCESS_COARSE_LOCATION) == PermissionChecker.PERMISSION_GRANTED + Manifest.permission.ACCESS_COARSE_LOCATION + ) == PermissionChecker.PERMISSION_GRANTED } - fun isFineLocationGranted() : Boolean { + fun isFineLocationGranted(): Boolean { return PermissionChecker.checkSelfPermission( context!!, - Manifest.permission.ACCESS_FINE_LOCATION) == PermissionChecker.PERMISSION_GRANTED + Manifest.permission.ACCESS_FINE_LOCATION + ) == PermissionChecker.PERMISSION_GRANTED } return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - isCoarseLocationGranted() && isFineLocationGranted() + isCoarseLocationGranted() && isFineLocationGranted() } else { true }