From a34f0df2d4a951ef128254df14c799dfc32a7626 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 16 Feb 2020 17:35:50 +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 --- .../ui/book/read/page/delegate/SimulationPageDelegate.kt | 4 ++-- .../java/io/legado/app/ui/importbook/ImportBookAdapter.kt | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt index 1a0e74fe5..383854357 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/delegate/SimulationPageDelegate.kt @@ -90,8 +90,8 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi super.setTouchPoint(x, y, invalidate) //触摸y中间位置吧y变成屏幕高度 //触摸y中间位置吧y变成屏幕高度 - if (startY > pageView.height / 3.0 - && startY < pageView.height * 2 / 3.0 + if ((startY > pageView.height / 3.0 + && startY < pageView.height * 2 / 3.0) || direction == Direction.PREV ) { touchY = pageView.height.toFloat() diff --git a/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt b/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt index 2f4c317e5..6cb49d10f 100644 --- a/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt @@ -94,10 +94,6 @@ class ImportBookAdapter(context: Context, val callBack: CallBack) : } else { cb_select.isChecked = selectedUris.contains(item.uri.toString()) } - - onClick { - - } } } @@ -112,11 +108,10 @@ class ImportBookAdapter(context: Context, val callBack: CallBack) : } else { selectedUris.remove(it.uri.toString()) } + notifyItemChanged(holder.layoutPosition, true) callBack.upCountView() } } - notifyItemChanged(holder.layoutPosition, true) - callBack.upCountView() } }