diff --git a/.idea/sonarIssues.xml b/.idea/sonarIssues.xml index d8c087a..33557cb 100644 --- a/.idea/sonarIssues.xml +++ b/.idea/sonarIssues.xml @@ -108,6 +108,11 @@ + + + + + diff --git a/app/build.gradle b/app/build.gradle index 49a8b30..37371f1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,7 +23,7 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } - + packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' diff --git a/app/src/main/java/com/filehandling/lib/ui/main/HomeActivity.kt b/app/src/main/java/com/filehandling/lib/ui/main/HomeActivity.kt index 02c5018..87b868a 100644 --- a/app/src/main/java/com/filehandling/lib/ui/main/HomeActivity.kt +++ b/app/src/main/java/com/filehandling/lib/ui/main/HomeActivity.kt @@ -130,8 +130,7 @@ class HomeActivity : AppCompatActivity() { fileList.addAll(bundle?.getSerializable("file-list") as ArrayList) for (file in fileList) { val libFile = LibFile(file.toUri(), true, file.name, 0, 0) - if (!mPageViewModel.fileList.value!!.contains(libFile)) - mPageViewModel.addFile(libFile) + mPageViewModel.addFile(libFile) } setResult(resultCode) }