From 3c203b84036194ddcc4b863290a07d0c88246496 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 13 Feb 2020 21:36:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/group/GroupViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,