更新界面
This commit is contained in:
1 parent
9f5a0eb483
commit
a07935f466
56 files changed
+482
-328
No files matched your search
@@ -539,6 +539,12 @@ object AppConfig : SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
appCtx.putPrefInt(PreferKey.bookshelfSort, value)
|
||||
}
|
||||
|
||||
var bookshelfSortOrder: Int
|
||||
get() = appCtx.getPrefInt(PreferKey.bookshelfSortOrder, 0)
|
||||
set(value) {
|
||||
appCtx.putPrefInt(PreferKey.bookshelfSortOrder, value)
|
||||
}
|
||||
|
||||
fun getBookSortByGroupId(groupId: Long): Int {
|
||||
return appDb.bookGroupDao.getByID(groupId)?.getRealBookSort()
|
||||
?: bookshelfSort
|
||||
|
||||
Reference in new issue
Block a user