diff --git a/lib/pages/bangumi/widgets/bangumi_panel.dart b/lib/pages/bangumi/widgets/bangumi_panel.dart index e3c2c0a84..f980dc688 100644 --- a/lib/pages/bangumi/widgets/bangumi_panel.dart +++ b/lib/pages/bangumi/widgets/bangumi_panel.dart @@ -131,7 +131,7 @@ class _BangumiPanelState extends State { child: Text( widget.newEp?['desc']?.contains('连载') == true ? '连载中,更新至${Utils.isStringNumeric(widget.newEp['title']) ? '第${widget.newEp?['title']}话' : '${widget.newEp?['title']}'}' - : '全${widget.pages.length}话', + : widget.newEp?['desc'], style: const TextStyle(fontSize: 13), ), ), diff --git a/lib/pages/fan/view.dart b/lib/pages/fan/view.dart index b0f8a89f4..1dba200d2 100644 --- a/lib/pages/fan/view.dart +++ b/lib/pages/fan/view.dart @@ -51,9 +51,7 @@ class _FansPageState extends State { Widget _buildBody(LoadingState loadingState) { return switch (loadingState) { - Loading() => HttpError( - callback: _fansController.onReload, - ), + Loading() => HttpError(), Success() => (loadingState.response as List?)?.isNotEmpty == true ? SliverGrid( gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent( diff --git a/lib/pages/setting/play_setting.dart b/lib/pages/setting/play_setting.dart index 69c87f9fb..23e8bda53 100644 --- a/lib/pages/setting/play_setting.dart +++ b/lib/pages/setting/play_setting.dart @@ -162,7 +162,7 @@ class _PlaySettingState extends State { callFn: (val) { if (val && !setting.get(SettingBoxKey.enableBackgroundPlay, - defaultValue: false)) { + defaultValue: true)) { SmartDialog.showToast('建议开启后台音频服务'); } }), @@ -172,7 +172,7 @@ class _PlaySettingState extends State { subTitle: '当弹幕开关开启时,小窗屏蔽弹幕以获得较好的体验', leading: Icon(Icons.comments_disabled_outlined), setKey: SettingBoxKey.pipNoDanmaku, - defaultVal: true, + defaultVal: false, ), const SetSwitchItem( title: '全屏手势反向', @@ -247,7 +247,7 @@ class _PlaySettingState extends State { subTitle: '避免画中画没有播放暂停功能', leading: Icon(Icons.volume_up_outlined), setKey: SettingBoxKey.enableBackgroundPlay, - defaultVal: false, + defaultVal: true, ), ], ), diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index dad854fdc..1f6afb8b8 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -133,7 +133,7 @@ class _VideoDetailPageState extends State autoPlayEnable = setting.get(SettingBoxKey.autoPlayEnable, defaultValue: false); autoPiP = setting.get(SettingBoxKey.autoPiP, defaultValue: false); - pipNoDanmaku = setting.get(SettingBoxKey.pipNoDanmaku, defaultValue: true); + pipNoDanmaku = setting.get(SettingBoxKey.pipNoDanmaku, defaultValue: false); enableVerticalExpand = setting.get(SettingBoxKey.enableVerticalExpand, defaultValue: false); removeSafeArea = setting.get(SettingBoxKey.videoPlayerRemoveSafeArea, diff --git a/lib/pages/video/detail/widgets/header_control.dart b/lib/pages/video/detail/widgets/header_control.dart index cdbd8521a..dfcd482d1 100644 --- a/lib/pages/video/detail/widgets/header_control.dart +++ b/lib/pages/video/detail/widgets/header_control.dart @@ -1598,7 +1598,7 @@ class _HeaderControlState extends State { if (canUsePiP) { bool enableBackgroundPlay = setting.get( SettingBoxKey.enableBackgroundPlay, - defaultValue: false); + defaultValue: true); if (!enableBackgroundPlay && context.mounted) { // SmartDialog.showToast('建议开启【后台播放】功能\n避免画中画没有暂停按钮'); // await Future.delayed(const Duration(seconds: 2), () { diff --git a/lib/services/audio_handler.dart b/lib/services/audio_handler.dart index 0ca0bd8c7..151fc3055 100644 --- a/lib/services/audio_handler.dart +++ b/lib/services/audio_handler.dart @@ -34,7 +34,7 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler { revalidateSetting() { enableBackgroundPlay = - setting.get(SettingBoxKey.enableBackgroundPlay, defaultValue: false); + setting.get(SettingBoxKey.enableBackgroundPlay, defaultValue: true); } @override diff --git a/lib/utils/storage.dart b/lib/utils/storage.dart index af7c2ba32..be2f5b5d8 100644 --- a/lib/utils/storage.dart +++ b/lib/utils/storage.dart @@ -274,7 +274,7 @@ class SettingBoxKey { previewQuality = 'previewQuality', checkDynamic = 'checkDynamic', dynamicPeriod = 'dynamicPeriod', - schemeVariant = 'schemeVariant', + schemeVariant = 'schemeVariaznt', // Sponsor Block enableSponsorBlock = 'enableSponsorBlock',