Added Last Used header to browse

This commit is contained in:
Jay
2020-04-22 20:33:43 -04:00
committed by arkon
parent 8c1ec43500
commit a088c9ca7c
4 changed files with 4 additions and 0 deletions

View File

@@ -240,6 +240,7 @@ class SourceController : NucleusController<SourceMainControllerBinding, SourcePr
adapter?.removeAllScrollableHeaders()
if (item != null) {
adapter?.addScrollableHeader(item)
adapter?.addScrollableHeader(LangItem(SourcePresenter.LAST_USED_KEY))
}
}

View File

@@ -113,5 +113,6 @@ class SourcePresenter(
companion object {
const val PINNED_KEY = "pinned"
const val LAST_USED_KEY = "last_used"
}
}