feat: 优化代码

pull/103/head
kunfei 5 years ago
parent 2aa8303870
commit 3c203b8403
  1. 2
      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 var id = 1
val idsSum = App.db.bookGroupDao().idsSum val idsSum = App.db.bookGroupDao().idsSum
while (id and idsSum != 0) { while (id and idsSum != 0) {
id *= 2 id = id.shl(1)
} }
val bookGroup = BookGroup( val bookGroup = BookGroup(
groupId = id, groupId = id,

Loading…
Cancel
Save