Преглед на файлове

Merge pull request #9295 from nextcloud/bugfix/noid/detekt

Fix detekt score
Andy Scherzinger преди 3 години
родител
ревизия
22fb67c20e
променени са 1 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. 7 6
      src/main/java/com/owncloud/android/utils/PermissionUtil.kt

+ 7 - 6
src/main/java/com/owncloud/android/utils/PermissionUtil.kt

@@ -2,8 +2,10 @@
  * Nextcloud Android client application
  *
  * @author Álvaro Brey Vilas
+ * @author Andy Scherzinger
  * Copyright (C) 2021 Álvaro Brey Vilas
  * Copyright (C) 2021 Nextcloud GmbH
+ * Copyright (C) 2015 Andy Scherzinger
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -37,9 +39,6 @@ import androidx.core.content.ContextCompat
 import com.owncloud.android.R
 import com.owncloud.android.utils.theme.ThemeButtonUtils
 
-/**
- * Created by scherzia on 29.12.2015.
- */
 object PermissionUtil {
     const val PERMISSIONS_EXTERNAL_STORAGE = 1
     const val PERMISSIONS_READ_CONTACTS_AUTOMATIC = 2
@@ -121,9 +120,11 @@ object PermissionUtil {
         val alertDialog = AlertDialog.Builder(activity, R.style.Theme_ownCloud_Dialog)
             .setTitle(R.string.file_management_permission)
             .setMessage(
-                String.format(activity.getString(
-                    R.string.file_management_permission_text),
-                    activity.getString(R.string.app_name)))
+                String.format(
+                    activity.getString(R.string.file_management_permission_text),
+                    activity.getString(R.string.app_name)
+                )
+            )
             .setCancelable(false)
             .setPositiveButton(R.string.common_ok) { dialog, _ ->
                 val intent = Intent().apply {