diff --git a/app/src/main/java/io/legado/app/service/help/AudioPlay.kt b/app/src/main/java/io/legado/app/service/help/AudioPlay.kt index ca6896715..40fd0ca35 100644 --- a/app/src/main/java/io/legado/app/service/help/AudioPlay.kt +++ b/app/src/main/java/io/legado/app/service/help/AudioPlay.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() diff --git a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt index 0c34c05bb..05d2fb333 100644 --- a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt +++ b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt @@ -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(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 { }