Чистка предупреждений
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<manifest>
|
||||
|
||||
</manifest>
|
||||
@@ -2,8 +2,8 @@ package com.github.nullptroma.wallenc.data.storages
|
||||
|
||||
import com.github.nullptroma.wallenc.data.db.app.repository.StorageKeyMapRepository
|
||||
import com.github.nullptroma.wallenc.data.model.StorageKeyMap
|
||||
import com.github.nullptroma.wallenc.domain.datatypes.EncryptKey
|
||||
import com.github.nullptroma.wallenc.data.storages.encrypt.EncryptedStorage
|
||||
import com.github.nullptroma.wallenc.domain.datatypes.EncryptKey
|
||||
import com.github.nullptroma.wallenc.domain.encrypt.Encryptor
|
||||
import com.github.nullptroma.wallenc.domain.interfaces.IStorage
|
||||
import com.github.nullptroma.wallenc.domain.interfaces.IUnlockManager
|
||||
@@ -12,7 +12,6 @@ import kotlinx.coroutines.CoroutineDispatcher
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.flow.collect
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.sync.Mutex
|
||||
import kotlinx.coroutines.sync.withLock
|
||||
|
||||
@@ -291,8 +291,8 @@ class LocalStorageAccessor(
|
||||
return@withContext listOf()
|
||||
|
||||
val list = mutableListOf<IFile>()
|
||||
scanStorage(baseStoragePath = path, maxDepth = 0, fileCallback = { _, CommonFile ->
|
||||
list.add(CommonFile)
|
||||
scanStorage(baseStoragePath = path, maxDepth = 0, fileCallback = { _, commonFile ->
|
||||
list.add(commonFile)
|
||||
})
|
||||
return@withContext list
|
||||
}
|
||||
@@ -303,7 +303,7 @@ class LocalStorageAccessor(
|
||||
|
||||
val buf = mutableListOf<IFile>()
|
||||
var pageNumber = 0
|
||||
scanStorage(baseStoragePath = path, maxDepth = 0, fileCallback = { _, CommonFile ->
|
||||
scanStorage(baseStoragePath = path, maxDepth = 0, fileCallback = { _, commonFile ->
|
||||
if (buf.size == DATA_PAGE_LENGTH) {
|
||||
val page = DataPage(
|
||||
list = buf.toList(),
|
||||
@@ -316,7 +316,7 @@ class LocalStorageAccessor(
|
||||
emit(page)
|
||||
buf.clear()
|
||||
}
|
||||
buf.add(CommonFile)
|
||||
buf.add(commonFile)
|
||||
})
|
||||
// отправка последней страницы
|
||||
val page = DataPage(
|
||||
|
||||
@@ -94,11 +94,11 @@ class CloseHandledStreamExtension {
|
||||
}
|
||||
|
||||
fun OutputStream.onClosing(callback: ()->Unit): OutputStream {
|
||||
return CloseHandledOutputStream(this, callback, {})
|
||||
return CloseHandledOutputStream(this, callback) {}
|
||||
}
|
||||
|
||||
fun InputStream.onClosing(callback: ()->Unit): InputStream {
|
||||
return CloseHandledInputStream(this, callback, {})
|
||||
return CloseHandledInputStream(this, callback) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user