diff --git a/CHANGELOG.md b/CHANGELOG.md index 70173b9..302236e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,27 +1,55 @@ # Tsacdop Changelog +## v0.3.6 + +Release date 2020/6/30 + +### New feature + +* Add sleep timer settings. include default time, auto start sleep timer, etc. + +### Bug fixed + +* Crash on stop player. +* Some donwload file didn't auto deleted. + ## v0.3.5 + Release date 2020/6/20 This is a energency release. + ### Bugs fixed -- Crashed in download page or button after remove a podcast. Add episode check when load tasks from flutterdownloader. + +* Crashed in download page or button after remove a podcast. Add episode check when load tasks from flutterdownloader. + ### Minor UI change -- Add buy me a coffee in about page. -- Remove progress number in download list in failed task, change refresh icon color to red. + +* Add buy me a coffee in about page. +* Remove progress number in download list in failed task, change refresh icon color to red. ## v0.3.4 + Release date 2020/6/16 -### New feature -- Support auto download new episodes, you can choose which podcast you want to auto download, you can also set if download using cellular data. -- Support auto delete downloaded episode, you can set days before delete. -- Support customize episode popup menu, you can add options you most want, **Like** | **Mark Listened** | **Download** newly added. -- Improved downloaded file manager, you can now sort downloads by date or size, you can also only view listened downloads. -### Minor UI change -- Removed the listened indicator, increased the color difference for listened episodes. -- Add text in podcast manage page menu. -- Change episode shownote font to Martel. -### Bugs fixed -- Auto play when receive notification. -- Lose podcast when import OMPL file. + +### New Feature + +* Support auto download new episodes, you can choose which podcast you want to auto download, you can also set if download using cellular data. +* Support auto delete downloaded episode, you can set days before delete. +* Support customize episode popup menu, you can add options you most want, **Like** | **Mark Listened** | **Download** newly added. +* Improved downloaded file manager, you can now sort downloads by date or size, you can also only view listened downloads. + +### Minor UI Change + +* Removed the listened indicator, increased the color difference for listened episodes. +* Add text in podcast manage page menu. +* Change episode shownote font to Martel. + +### Bugs Fixed + +* Auto play when receive notification. +* Lose podcast when import OMPL file. + ### Other -- Add privacy policy. + +* Add privacy policy. + diff --git a/lib/home/importompl.dart b/lib/home/importompl.dart index 353f23a..1b0950b 100644 --- a/lib/home/importompl.dart +++ b/lib/home/importompl.dart @@ -72,6 +72,7 @@ class Import extends StatelessWidget { // groupList.updatePodcast(item.id); return importColumn("Subscribe success ${item.title}", context); case SubscribeState.exist: + //groupList.subscribeNewPodcast(item.id); return importColumn( "Subscribe failed, podcast existed ${item.title}", context); case SubscribeState.error: diff --git a/lib/settings/play_setting.dart b/lib/settings/play_setting.dart index 1be36c7..1eac1ca 100644 --- a/lib/settings/play_setting.dart +++ b/lib/settings/play_setting.dart @@ -288,7 +288,7 @@ class PlaySetting extends StatelessWidget { ListTile( contentPadding: EdgeInsets.only(left: 80.0, right: 20), title: Text('Default time'), - subtitle: Text('Default time for sleep timer.'), + subtitle: Text('Default time for sleep timer'), trailing: Selector( selector: (_, settings) => settings.defaultSleepTimer, builder: (_, data, __) => DropdownButton( @@ -315,7 +315,7 @@ class PlaySetting extends StatelessWidget { left: 80.0, right: 20.0, bottom: 10.0, top: 10.0), title: Text('Auto turn on sleep timer'), subtitle: - Text('Auto start sleep timer at scheduled time.'), + Text('Auto start sleep timer at scheduled time'), trailing: Transform.scale( scale: 0.9, child: Switch( diff --git a/lib/settings/storage.dart b/lib/settings/storage.dart index 560ca3d..c5a4112 100644 --- a/lib/settings/storage.dart +++ b/lib/settings/storage.dart @@ -127,7 +127,7 @@ class _StorageSettingState extends State left: 80.0, right: 25, bottom: 10, top: 10), title: Text('Ask before using cellular data'), subtitle: Text( - 'Ask to confirm when using cellular data to download episodes.'), + 'Ask to confirm when using cellular data to download episodes'), trailing: Transform.scale( scale: 0.9, child: Switch( @@ -154,7 +154,7 @@ class _StorageSettingState extends State title: Text('Auto download using cellular data'), subtitle: Text( - 'You can set podcast auto download in group manage page.'), + 'You can set podcast auto download in group manage page'), trailing: Transform.scale( scale: 0.9, child: Switch( @@ -211,7 +211,7 @@ class _StorageSettingState extends State contentPadding: EdgeInsets.only(left: 80.0, right: 20), title: Text('Auto delete downloads after'), - subtitle: Text('Default 30 days.'), + subtitle: Text('Default 30 days'), trailing: DropdownButton( hint: snapshot.data == -1 ? Text('Never') diff --git a/lib/state/podcast_group.dart b/lib/state/podcast_group.dart index b484b98..67d1964 100644 --- a/lib/state/podcast_group.dart +++ b/lib/state/podcast_group.dart @@ -201,11 +201,12 @@ class GroupList extends ChangeNotifier { } Future subscribeNewPodcast(String id) async { - if (!_groups[0].podcastList.contains(id)) + if (!_groups[0].podcastList.contains(id)) { _groups[0].podcastList.insert(0, id); - await _saveGroup(); - await _groups[0].getPodcasts(); - notifyListeners(); + await _saveGroup(); + await _groups[0].getPodcasts(); + notifyListeners(); + } } List getPodcastGroup(String id) {