pull/47/head
kunfei 5 years ago
parent 37d0377a1f
commit d0e64c8210
  1. 3
      app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt

@ -29,7 +29,6 @@ import io.legado.app.utils.getViewModel
import io.legado.app.utils.observeEvent import io.legado.app.utils.observeEvent
import io.legado.app.utils.snackbar import io.legado.app.utils.snackbar
import kotlinx.android.synthetic.main.activity_audio_play.* import kotlinx.android.synthetic.main.activity_audio_play.*
import kotlinx.android.synthetic.main.activity_book_read.*
import kotlinx.android.synthetic.main.view_title_bar.* import kotlinx.android.synthetic.main.view_title_bar.*
import org.apache.commons.lang3.time.DateFormatUtils import org.apache.commons.lang3.time.DateFormatUtils
import org.jetbrains.anko.sdk27.listeners.onClick import org.jetbrains.anko.sdk27.listeners.onClick
@ -134,7 +133,7 @@ class AudioPlayActivity : VMBaseActivity<AudioPlayViewModel>(R.layout.activity_a
override fun onKeyLongPress(keyCode: Int, event: KeyEvent?): Boolean { override fun onKeyLongPress(keyCode: Int, event: KeyEvent?): Boolean {
when (keyCode) { when (keyCode) {
KeyEvent.KEYCODE_BACK -> { KeyEvent.KEYCODE_BACK -> {
page_view.snackbar(R.string.to_backstage, R.string.ok) { title_bar.snackbar(R.string.to_backstage, R.string.ok) {
startActivity<MainActivity>() startActivity<MainActivity>()
} }
return true return true

Loading…
Cancel
Save