From 2265f7bd1c9b5d7ed5fda550f553e2fc883b03b7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 9 Nov 2019 11:54:47 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/audio/AudioPlayActivity.kt | 7 ++----- app/src/main/res/layout/activity_audio_play.xml | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) 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 e7ba830a8..87e713c1f 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 @@ -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(R.layout.activity_a override fun onDestroy() { super.onDestroy() - AudioPlay.stop(this) - if (!BuildConfig.DEBUG) { - Backup.autoBackup() + if (status != Status.PLAY) { + AudioPlay.stop(this) } } diff --git a/app/src/main/res/layout/activity_audio_play.xml b/app/src/main/res/layout/activity_audio_play.xml index a61910182..a1727ecc6 100644 --- a/app/src/main/res/layout/activity_audio_play.xml +++ b/app/src/main/res/layout/activity_audio_play.xml @@ -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" />