|
|
@ -3,6 +3,7 @@ package io.legado.app.ui.audio |
|
|
|
import android.app.Activity |
|
|
|
import android.app.Activity |
|
|
|
import android.content.Intent |
|
|
|
import android.content.Intent |
|
|
|
import android.graphics.drawable.Drawable |
|
|
|
import android.graphics.drawable.Drawable |
|
|
|
|
|
|
|
import android.os.Build |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Bundle |
|
|
|
import android.widget.SeekBar |
|
|
|
import android.widget.SeekBar |
|
|
|
import androidx.lifecycle.Observer |
|
|
|
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.lib.dialogs.okButton |
|
|
|
import io.legado.app.service.help.AudioPlay |
|
|
|
import io.legado.app.service.help.AudioPlay |
|
|
|
import io.legado.app.ui.chapterlist.ChapterListActivity |
|
|
|
import io.legado.app.ui.chapterlist.ChapterListActivity |
|
|
|
import io.legado.app.utils.applyTint |
|
|
|
import io.legado.app.utils.* |
|
|
|
import io.legado.app.utils.getViewModel |
|
|
|
|
|
|
|
import io.legado.app.utils.observeEvent |
|
|
|
|
|
|
|
import io.legado.app.utils.observeEventSticky |
|
|
|
|
|
|
|
import kotlinx.android.synthetic.main.activity_audio_play.* |
|
|
|
import kotlinx.android.synthetic.main.activity_audio_play.* |
|
|
|
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 |
|
|
@ -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 { |
|
|
|
iv_fast_forward.onClick { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|