Merge remote-tracking branch 'upstream/master' into master

pull/436/head
github-actions 4 years ago
commit b57c6d7471
  1. 4
      app/src/main/assets/updateLog.md
  2. 5
      app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt
  3. 22
      app/src/main/java/io/legado/app/ui/widget/anima/explosion_field/ExplosionView.kt

@ -3,6 +3,10 @@
* 关注合作公众号 **[小说拾遗]()** 获取好看的小说。
* 旧版数据导入教程:先在旧版阅读(2.x)中进行备份,然后在新版阅读(3.x)【我的】->【备份与恢复】,选择【导入旧版本数据】。
**2020/10/22**
* 修复选择错误的bug
* 修复长图最后一张不能滚动的bug
**2020/10/21**
* 默认分组无书籍时自动隐藏
* 自定义翻页按键支持多个按键

@ -26,9 +26,8 @@ import org.jetbrains.anko.sdk27.listeners.onLongClick
*/
class ReadMenu @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : FrameLayout(context, attrs, defStyleAttr) {
attrs: AttributeSet? = null
) : FrameLayout(context, attrs) {
var cnaShowMenu: Boolean = false
private val callBack: CallBack? get() = activity as? CallBack
private lateinit var menuTopIn: Animation

@ -30,7 +30,8 @@ import java.util.*
@Suppress("unused")
class ExplosionView : View {
class ExplosionView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
View(context, attrs) {
private var customDuration = ExplosionAnimator.DEFAULT_DURATION
private var idPlayAnimationEffect = 0
@ -40,24 +41,7 @@ class ExplosionView : View {
private val mExplosions = ArrayList<ExplosionAnimator>()
private val mExpandInset = IntArray(2)
constructor(context: Context) : super(context) {
init()
}
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {
init()
}
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(
context,
attrs,
defStyleAttr
) {
init()
}
private fun init() {
init {
Arrays.fill(mExpandInset, Utils.dp2Px(32))
}

Loading…
Cancel
Save