Code Cleanup
This commit is contained in:
parent
f8be0502ca
commit
5005e91b1c
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ class BackupViewModel : ViewModel() {
|
||||||
|
|
||||||
fun loadBackups() {
|
fun loadBackups() {
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
File(BackupHelper.backupRootPath).listFiles { _, name ->
|
File(BackupHelper.backupRootPath).listFiles { file, _ ->
|
||||||
return@listFiles name.endsWith(BackupHelper.BACKUP_EXTENSION)
|
return@listFiles file.extension == BackupHelper.BACKUP_EXTENSION
|
||||||
}?.toList()?.let {
|
}?.toList()?.let {
|
||||||
backupsMutableLiveData.value = it
|
backupsMutableLiveData.value = it
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue