pull/32/head
kunfei 5 years ago
parent 00e5da3683
commit c7660cf303
  1. 15
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -247,10 +247,25 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
return true
}
}
KeyEvent.KEYCODE_VOLUME_UP -> {
}
KeyEvent.KEYCODE_VOLUME_DOWN -> {
}
KeyEvent.KEYCODE_SPACE -> {
}
}
return super.onKeyDown(keyCode, event)
}
override fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean {
when (keyCode) {
KeyEvent.KEYCODE_VOLUME_UP, KeyEvent.KEYCODE_VOLUME_DOWN -> {
}
}
return super.onKeyUp(keyCode, event)
}
/**
* 加载章节内容
*/

Loading…
Cancel
Save