diff --git a/app/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.kt b/app/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.kt index 9be7b83c2de1..01672938757d 100644 --- a/app/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.kt +++ b/app/src/main/java/com/owncloud/android/ui/dialog/SyncedFolderPreferencesDialogFragment.kt @@ -537,6 +537,7 @@ class SyncedFolderPreferencesDialogFragment : DialogFragment(), Injectable { * * @return 0 if ASK_USER, 1 if OVERWRITE, 2 if RENAME, 3 if SKIP, Otherwise: 0 */ + @Suppress("MagicNumber") private fun getSelectionIndexForNameCollisionPolicy(nameCollisionPolicy: NameCollisionPolicy): Int { return when (nameCollisionPolicy) { NameCollisionPolicy.OVERWRITE -> 1 @@ -551,6 +552,7 @@ class SyncedFolderPreferencesDialogFragment : DialogFragment(), Injectable { * * @return ASK_USER if 0, OVERWRITE if 1, RENAME if 2, SKIP if 3. Otherwise: ASK_USER */ + @Suppress("MagicNumber") private fun getNameCollisionPolicyForSelectionIndex(index: Int): NameCollisionPolicy { return when (index) { 1 -> NameCollisionPolicy.OVERWRITE