mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 22:39:34 +00:00
测试安卓修改app名称
This commit is contained in:
parent
6b1edcb475
commit
6ceeb99d20
19 changed files with 1218 additions and 822 deletions
|
|
@ -32,6 +32,7 @@ class AbsAudioHandler extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||
|
||||
final _currentChapterObject = BehaviorSubject<BookChapter?>.seeded(null);
|
||||
AbsAudioHandler(this.ref) {
|
||||
notificationSettings = ref.read(appSettingsProvider).notificationSettings;
|
||||
ref.listen(appSettingsProvider, (a, b) {
|
||||
if (a?.notificationSettings != b.notificationSettings) {
|
||||
notificationSettings = b.notificationSettings;
|
||||
|
|
@ -52,12 +53,12 @@ class AbsAudioHandler extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||
final chapter = _book?.findChapterAtTime(positionInBook);
|
||||
if (chapter != currentChapter) {
|
||||
if (mediaItem.hasValue && chapter != null) {
|
||||
updateMediaItem(
|
||||
mediaItem.value!.copyWith(
|
||||
duration: chapter.duration,
|
||||
displayTitle: chapter.title,
|
||||
),
|
||||
);
|
||||
// updateMediaItem(
|
||||
// mediaItem.value!.copyWith(
|
||||
// duration: chapter.duration,
|
||||
// displayTitle: chapter.title,
|
||||
// ),
|
||||
// );
|
||||
}
|
||||
_currentChapterObject.sink.add(chapter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue