diff --git a/app/src/main/java/io/legado/app/ui/book/group/GroupViewModel.kt b/app/src/main/java/io/legado/app/ui/book/group/GroupViewModel.kt index 6045ad832..eb811766e 100644 --- a/app/src/main/java/io/legado/app/ui/book/group/GroupViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/group/GroupViewModel.kt @@ -12,7 +12,7 @@ class GroupViewModel(application: Application) : BaseViewModel(application) { var id = 1 val idsSum = App.db.bookGroupDao().idsSum while (id and idsSum != 0) { - id *= 2 + id = id.shl(1) } val bookGroup = BookGroup( groupId = id,