|
@@ -280,11 +280,18 @@
|
|
|
#pragma mark 点击删除音频
|
|
|
- (void)didClickAudioInPlayListBy:(NSInteger)row
|
|
|
{
|
|
|
- lastFileModel* dataModel = _curDataArr[row];
|
|
|
-
|
|
|
- if(_didClickDeleteFun){
|
|
|
- _didClickDeleteFun(dataModel);
|
|
|
+ if(row < _curDataArr.count){
|
|
|
+
|
|
|
+ lastFileModel* dataModel = _curDataArr[row];
|
|
|
+
|
|
|
+ if(_didClickDeleteFun){
|
|
|
+ if(row < _playingIndex){
|
|
|
+ _playingIndex --;
|
|
|
+ }
|
|
|
+ _didClickDeleteFun(dataModel);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
@end
|
|
|
|