mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
优化
This commit is contained in:
parent
ce40316d2d
commit
1a0ebd87b3
@ -107,11 +107,13 @@ class CrashLogsDialog : BaseDialogFragment(R.layout.dialog_recycler_view),
|
||||
val backupPath = AppConfig.backupPath
|
||||
if (!backupPath.isNullOrEmpty()) {
|
||||
val uri = Uri.parse(backupPath)
|
||||
FileDoc.fromUri(uri, true).find("crash")?.list {
|
||||
!it.isDir
|
||||
}?.let {
|
||||
list.addAll(it)
|
||||
}
|
||||
FileDoc.fromUri(uri, true)
|
||||
.find("crash")
|
||||
?.list {
|
||||
!it.isDir
|
||||
}?.let {
|
||||
list.addAll(it)
|
||||
}
|
||||
}
|
||||
return@execute list.sortedByDescending { it.name }
|
||||
}.onSuccess {
|
||||
|
Loading…
Reference in New Issue
Block a user