Merge branch 'feature/photoview' of kilowatt36/freezer into master

This commit is contained in:
exttex 2020-11-01 15:33:39 +00:00 committed by Gogs
commit 00972a5469
6 changed files with 71 additions and 9 deletions

View file

@ -29,7 +29,7 @@ class PlayerHelper {
QueueSource queueSource;
LoopMode repeatType = LoopMode.off;
//Find queue index by id
int get queueIndex => AudioService.queue.indexWhere((mi) => mi.id == AudioService.currentMediaItem?.id??'Random string so it returns -1');
int get queueIndex => AudioService.queue == null ? 0 : AudioService.queue.indexWhere((mi) => mi.id == AudioService.currentMediaItem?.id??'Random string so it returns -1');
Future start() async {
//Subscribe to custom events