#1351 removed arraylist and added list in filestransfer

This commit is contained in:
gouri-panda 2020-11-07 22:18:59 +05:30
parent 959c701934
commit 6cbae7e0dd
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class ReceiverHandShake {
}
}
val arrayListOfFileItems = ArrayList(fileItems.toList().filterNotNull())
wifiDirectManager.setFilesForTransfer(arrayListOfFileItems)
wifiDirectManager.setFilesForTransfer(fileItems.toList() as List<FileItem>)
}
}
} catch (e: Exception) {

View File

@ -261,7 +261,7 @@ class WifiDirectManager @Inject constructor(
fun getFilesForTransfer() = filesForTransfer
fun setFilesForTransfer(fileItems: ArrayList<FileItem>) {
fun setFilesForTransfer(fileItems: List<FileItem>) {
filesForTransfer = fileItems
}