优化
This commit is contained in:
@@ -135,7 +135,7 @@ class HttpReadAloudService : BaseReadAloudService(),
|
|||||||
launch(Main) {
|
launch(Main) {
|
||||||
exoPlayer.addMediaItem(mediaItem)
|
exoPlayer.addMediaItem(mediaItem)
|
||||||
if (!exoPlayer.isPlaying && nowSpeak == index) {
|
if (!exoPlayer.isPlaying && nowSpeak == index) {
|
||||||
exoPlayer.playWhenReady = true
|
exoPlayer.playWhenReady = !pause
|
||||||
exoPlayer.prepare()
|
exoPlayer.prepare()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
app:layout_constrainedWidth="true"
|
app:layout_constrainedWidth="true"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0"
|
app:layout_constraintHorizontal_bias="0"
|
||||||
@@ -25,12 +26,13 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
|
android:singleLine="true"
|
||||||
android:textColor="@color/secondaryText"
|
android:textColor="@color/secondaryText"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintHorizontal_chainStyle="packed"
|
||||||
app:layout_constraintLeft_toRightOf="@id/cb_source_name"
|
app:layout_constraintLeft_toRightOf="@id/cb_source_name"
|
||||||
app:layout_constraintRight_toLeftOf="@id/tv_open"
|
app:layout_constraintRight_toLeftOf="@id/tv_open"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
app:layout_constraintHorizontal_chainStyle="packed" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_open"
|
android:id="@+id/tv_open"
|
||||||
|
|||||||
Reference in New Issue
Block a user