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
|
val backupPath = AppConfig.backupPath
|
||||||
if (!backupPath.isNullOrEmpty()) {
|
if (!backupPath.isNullOrEmpty()) {
|
||||||
val uri = Uri.parse(backupPath)
|
val uri = Uri.parse(backupPath)
|
||||||
FileDoc.fromUri(uri, true).find("crash")?.list {
|
FileDoc.fromUri(uri, true)
|
||||||
!it.isDir
|
.find("crash")
|
||||||
}?.let {
|
?.list {
|
||||||
list.addAll(it)
|
!it.isDir
|
||||||
}
|
}?.let {
|
||||||
|
list.addAll(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return@execute list.sortedByDescending { it.name }
|
return@execute list.sortedByDescending { it.name }
|
||||||
}.onSuccess {
|
}.onSuccess {
|
||||||
|
Loading…
Reference in New Issue
Block a user