pull/48/head
kunfei 5 years ago
parent 2af8491c74
commit 2265f7bd1c
  1. 7
      app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt
  2. 2
      app/src/main/res/layout/activity_audio_play.xml

@ -8,14 +8,12 @@ import android.widget.SeekBar
import androidx.lifecycle.Observer
import com.bumptech.glide.RequestBuilder
import com.bumptech.glide.request.RequestOptions
import io.legado.app.BuildConfig
import io.legado.app.R
import io.legado.app.base.VMBaseActivity
import io.legado.app.constant.Bus
import io.legado.app.constant.Status
import io.legado.app.help.BlurTransformation
import io.legado.app.help.ImageLoader
import io.legado.app.help.storage.Backup
import io.legado.app.lib.dialogs.alert
import io.legado.app.lib.dialogs.noButton
import io.legado.app.lib.dialogs.okButton
@ -129,9 +127,8 @@ class AudioPlayActivity : VMBaseActivity<AudioPlayViewModel>(R.layout.activity_a
override fun onDestroy() {
super.onDestroy()
AudioPlay.stop(this)
if (!BuildConfig.DEBUG) {
Backup.autoBackup()
if (status != Status.PLAY) {
AudioPlay.stop(this)
}
}

@ -46,6 +46,8 @@
android:id="@+id/tv_sub_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/md_white_1000"
android:gravity="center"
app:layout_constraintBottom_toTopOf="@+id/ll_player_progress" />
<LinearLayout

Loading…
Cancel
Save