mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
c0cc59a31b
commit
232afd0c81
@ -11,6 +11,10 @@
|
||||
* 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。
|
||||
* 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!
|
||||
|
||||
**2022/10/25**
|
||||
|
||||
* 朗读菜单的闹钟点击后可以保存设定时间,下次启动朗读自动设定时间,调不了时间的把进度条拉到0然后点一下闹钟就可以了 by Horis
|
||||
|
||||
**2022/10/22**
|
||||
|
||||
* 搜索范围保持分组排序
|
||||
|
@ -86,6 +86,9 @@ abstract class BaseReadAloudService : BaseService(),
|
||||
upNotification()
|
||||
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PLAYING)
|
||||
setTimer(AppConfig.ttsTimer)
|
||||
if (AppConfig.ttsTimer > 0) {
|
||||
toastOnUi("朗读定时 ${AppConfig.ttsTimer} 分钟")
|
||||
}
|
||||
}
|
||||
|
||||
fun observeLiveBus() {
|
||||
|
@ -22,6 +22,7 @@ import io.legado.app.ui.widget.seekbar.SeekBarChangeListener
|
||||
import io.legado.app.utils.ColorUtils
|
||||
import io.legado.app.utils.getPrefBoolean
|
||||
import io.legado.app.utils.observeEvent
|
||||
import io.legado.app.utils.toastOnUi
|
||||
import io.legado.app.utils.viewbindingdelegate.viewBinding
|
||||
|
||||
|
||||
@ -122,6 +123,10 @@ class ReadAloudDialog : BaseDialogFragment(R.layout.dialog_read_aloud) {
|
||||
AppConfig.ttsSpeechRate = AppConfig.ttsSpeechRate + 1
|
||||
upTtsSpeechRate()
|
||||
}
|
||||
ivTimer.setOnClickListener {
|
||||
AppConfig.ttsTimer = seekTimer.progress
|
||||
toastOnUi("保存设定时间成功!")
|
||||
}
|
||||
//设置保存的默认值
|
||||
seekTtsSpeechRate.progress = AppConfig.ttsSpeechRate
|
||||
seekTtsSpeechRate.setOnSeekBarChangeListener(object : SeekBarChangeListener {
|
||||
@ -136,7 +141,6 @@ class ReadAloudDialog : BaseDialogFragment(R.layout.dialog_read_aloud) {
|
||||
}
|
||||
|
||||
override fun onStopTrackingTouch(seekBar: SeekBar) {
|
||||
AppConfig.ttsTimer = seekTimer.progress
|
||||
ReadAloud.setTimer(requireContext(), seekTimer.progress)
|
||||
}
|
||||
})
|
||||
|
@ -126,6 +126,7 @@
|
||||
android:id="@+id/iv_timer"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
android:tooltipText="@string/set_timer"
|
||||
android:contentDescription="@string/set_timer"
|
||||
android:src="@drawable/ic_time_add_24dp"
|
||||
|
Loading…
Reference in New Issue
Block a user