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() } }