mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +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