Commit eaa50d0c authored by wanglei's avatar wanglei

...

parent d34c4815
...@@ -105,7 +105,6 @@ class MainPresenter( ...@@ -105,7 +105,6 @@ class MainPresenter(
Log.d("glc", "pdfDocuments:" + pdfDocuments.size) Log.d("glc", "pdfDocuments:" + pdfDocuments.size)
val recentList = SpStringUtils.getSpStringList(LAST_VIEW_KEY) val recentList = SpStringUtils.getSpStringList(LAST_VIEW_KEY)
when (documentType) { when (documentType) {
TYPE_PDF -> { TYPE_PDF -> {
val data = arrayListOf<DocumentBean>() val data = arrayListOf<DocumentBean>()
...@@ -121,6 +120,7 @@ class MainPresenter( ...@@ -121,6 +120,7 @@ class MainPresenter(
} }
RECENT_DATA_TYPE -> { RECENT_DATA_TYPE -> {
data.forEach { recentFilter(recentList, it) }
return data.filter { it.lastViewTime != 0L }.sortedByDescending { it.lastViewTime } return data.filter { it.lastViewTime != 0L }.sortedByDescending { it.lastViewTime }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment