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

Fix code analytics

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk преди 1 година
родител
ревизия
4e1dda3763
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      app/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.kt

+ 2 - 0
app/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.kt

@@ -44,6 +44,7 @@ class PreviewImagePagerAdapter : FragmentStateAdapter {
      * @param parentFolder    Folder where images will be searched for.
      * @param storageManager  Bridge to database.
      */
+    @Suppress("LongParameterList")
     constructor(
         fragmentActivity: FragmentActivity?,
         selectedFile: OCFile?,
@@ -127,6 +128,7 @@ class PreviewImagePagerAdapter : FragmentStateAdapter {
      *
      * @return OCFile desired image or null if position is not in adapter
      */
+    @Suppress("TooGenericExceptionCaught")
     fun getFileAt(position: Int): OCFile? {
         return try {
             imageFiles[position]