mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-17 03:16:27 -04:00
#1351 removed arraylist and added list in filestransfer
This commit is contained in:
parent
959c701934
commit
6cbae7e0dd
@ -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) {
|
||||
|
@ -261,7 +261,7 @@ class WifiDirectManager @Inject constructor(
|
||||
|
||||
fun getFilesForTransfer() = filesForTransfer
|
||||
|
||||
fun setFilesForTransfer(fileItems: ArrayList<FileItem>) {
|
||||
fun setFilesForTransfer(fileItems: List<FileItem>) {
|
||||
filesForTransfer = fileItems
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user