Bug fixed

This commit is contained in:
stonegate 2020-04-26 13:41:25 +08:00
parent d1a9c08815
commit e8cedbce75
5 changed files with 19 additions and 36 deletions

View File

@ -47,7 +47,7 @@ android {
applicationId "com.stonegate.tsacdop"
minSdkVersion 19
targetSdkVersion 28
versionCode 6
versionCode 7
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View File

@ -354,7 +354,7 @@ class AudioPlayerNotifier extends ChangeNotifier {
//double s = _currentSpeed ?? 1.0;
int getPosition = 0;
Timer.periodic(Duration(milliseconds: 200), (timer) {
Timer.periodic(Duration(milliseconds: 500), (timer) {
double s = _currentSpeed ?? 1.0;
if (_noSlide) {
if (_audioState == BasicPlaybackState.playing) {

View File

@ -69,24 +69,7 @@ class _PopupMenuState extends State<PopupMenu> {
Widget build(BuildContext context) {
var refreshWorker = Provider.of<RefreshWorker>(context, listen: false);
var subscribeWorker = Provider.of<SubscribeWorker>(context, listen: false);
// _refreshAll() async {
// var dbHelper = DBHelper();
// List<PodcastLocal> podcastList = await dbHelper.getPodcastLocalAll();
// int i = 0;
// await Future.forEach(podcastList, (podcastLocal) async {
// importOmpl.rssTitle = podcastLocal.title;
// importOmpl.importState = ImportState.parse;
// i += await dbHelper.updatePodcastRss(podcastLocal);
// print('Refresh ' + podcastLocal.title);
// });
// KeyValueStorage refreshstorage = KeyValueStorage('refreshdate');
// await refreshstorage.saveInt(DateTime.now().millisecondsSinceEpoch);
// KeyValueStorage refreshcountstorage = KeyValueStorage('refreshcount');
// await refreshcountstorage.saveInt(i);
// importOmpl.importState = ImportState.complete;
// groupList.updateGroups();
// }
//
void _saveOmpl(String path) async {
File file = File(path);
try {

View File

@ -64,18 +64,19 @@ class DBHelper {
"""SELECT id, title, imageUrl, rssUrl, primaryColor, author, imagePath , provider,
link ,update_count, episode_count FROM PodcastLocal WHERE id = ?""",
[s]);
podcastLocal.add(PodcastLocal(
list.first['title'],
list.first['imageUrl'],
list.first['rssUrl'],
list.first['primaryColor'],
list.first['author'],
list.first['id'],
list.first['imagePath'],
list.first['provider'],
list.first['link'],
upateCount: list.first['update_count'],
episodeCount: list.first['episode_count']));
if (list.length > 0)
podcastLocal.add(PodcastLocal(
list.first['title'],
list.first['imageUrl'],
list.first['rssUrl'],
list.first['primaryColor'],
list.first['author'],
list.first['id'],
list.first['imagePath'],
list.first['provider'],
list.first['link'],
upateCount: list.first['update_count'],
episodeCount: list.first['episode_count']));
});
return podcastLocal;
}
@ -104,9 +105,8 @@ class DBHelper {
Future<int> getPodcastCounts(String id) async {
var dbClient = await database;
List<Map> list = await dbClient.rawQuery(
'SELECT episode_count FROM PodcastLocal WHERE id = ?',
[id]);
List<Map> list = await dbClient
.rawQuery('SELECT episode_count FROM PodcastLocal WHERE id = ?', [id]);
return list.first['episode_count'];
}

View File

@ -11,7 +11,7 @@ description: An easy-use podacasts player.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.2.0
version: 0.2.0+1
environment:
sdk: ">=2.6.0 <3.0.0"