pull/49/head
kunfei 5 years ago
parent c75960b7d2
commit 4e512598bf
  1. 1
      app/src/main/java/io/legado/app/service/help/AudioPlay.kt
  2. 10
      app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt

@ -18,6 +18,7 @@ object AudioPlay {
var chapterSize = 0
var durChapterIndex = 0
var durPageIndex = 0
var speed: Float = 1f
var webBook: WebBook? = null
val loadingChapters = arrayListOf<Int>()

@ -3,6 +3,7 @@ package io.legado.app.ui.audio
import android.app.Activity
import android.content.Intent
import android.graphics.drawable.Drawable
import android.os.Build
import android.os.Bundle
import android.widget.SeekBar
import androidx.lifecycle.Observer
@ -19,10 +20,7 @@ import io.legado.app.lib.dialogs.noButton
import io.legado.app.lib.dialogs.okButton
import io.legado.app.service.help.AudioPlay
import io.legado.app.ui.chapterlist.ChapterListActivity
import io.legado.app.utils.applyTint
import io.legado.app.utils.getViewModel
import io.legado.app.utils.observeEvent
import io.legado.app.utils.observeEventSticky
import io.legado.app.utils.*
import kotlinx.android.synthetic.main.activity_audio_play.*
import kotlinx.android.synthetic.main.view_title_bar.*
import org.apache.commons.lang3.time.DateFormatUtils
@ -83,6 +81,10 @@ class AudioPlayActivity : VMBaseActivity<AudioPlayViewModel>(R.layout.activity_a
)
}
}
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
iv_fast_rewind.invisible()
iv_fast_forward.invisible()
}
iv_fast_forward.onClick {
}

Loading…
Cancel
Save