Skip to content

Commit cbcb622

Browse files
committed
Fix auto update time dialog.
1 parent 05683f2 commit cbcb622

4 files changed

Lines changed: 19 additions & 5 deletions

File tree

lib/core/environment.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Environment {
2626
static const _applicationName = 'Anytime';
2727
static const _applicationUrl = 'https://github.com/amugofjava/anytime_podcast_player';
2828
static const _projectVersion = '1.4.2';
29-
static const _build = '247';
29+
static const _build = '249';
3030

3131
static var _agentString = userAgentAppString;
3232

lib/ui/settings/episode_refresh.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class _EpisodeRefreshWidgetState extends State<EpisodeRefreshWidget> {
141141
),
142142
dense: true,
143143
contentPadding: const EdgeInsets.symmetric(horizontal: 0.0),
144-
value: 720,
144+
value: 1440,
145145
groupValue: snapshot.data!.autoUpdateEpisodePeriod,
146146
onChanged: (int? value) {
147147
setState(() {
@@ -158,7 +158,7 @@ class _EpisodeRefreshWidgetState extends State<EpisodeRefreshWidget> {
158158
),
159159
dense: true,
160160
contentPadding: const EdgeInsets.symmetric(horizontal: 0.0),
161-
value: 720,
161+
value: 2880,
162162
groupValue: snapshot.data!.autoUpdateEpisodePeriod,
163163
onChanged: (int? value) {
164164
setState(() {
@@ -210,8 +210,12 @@ class _EpisodeRefreshWidgetState extends State<EpisodeRefreshWidget> {
210210
return Text(L.of(context)!.settings_auto_update_episodes_6hour);
211211
case 720:
212212
return Text(L.of(context)!.settings_auto_update_episodes_12hour);
213+
case 1440:
214+
return Text(L.of(context)!.settings_auto_update_episodes_24hour);
215+
case 2880:
216+
return Text(L.of(context)!.settings_auto_update_episodes_48hour);
213217
}
214218

215-
return const Text('Never');
219+
return Text(L.of(context)!.settings_auto_update_episodes_never);
216220
}
217221
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: anytime
22
description: Anytime Podcast Player
33

4-
version: 1.4.2+247
4+
version: 1.4.2+249
55

66
environment:
77
sdk: '>=3.6.0 <4.0.0'

test/unit/mocks/mock_path_provider.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,14 @@ class MockPathProvder extends PathProviderPlatform {
1515
Future<String> getApplicationDocumentsPath() {
1616
return Future.value(Directory.systemTemp.path);
1717
}
18+
19+
@override
20+
Future<String> getApplicationSupportPath() {
21+
return Future.value(Directory.systemTemp.path);
22+
}
23+
24+
@override
25+
Future<String> getTemporaryPath() {
26+
return Future.value(Directory.systemTemp.path);
27+
}
1828
}

0 commit comments

Comments
 (0)