Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajunhui committed Jun 30, 2018
1 parent c9fc4e4 commit 260db18
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ demo示例集成了播放控制组件**ControllerCover**、加载中组件**Load

```gradle
dependencies {
compile 'com.kk.taurus.playerbase:playerbase:3.2.8.9'
compile 'com.kk.taurus.playerbase:playerbase:3.2.8.9.1'
}
```

Expand Down
2 changes: 1 addition & 1 deletion playerbase/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

// 这个version是区分library版本的,因此当我们需要更新library时记得修改这个version
version = "3.2.8.9"
version = "3.2.8.9.1"

android {
compileSdkVersion 26
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.kk.taurus.playerbase.extension;

import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

Expand Down Expand Up @@ -59,14 +58,11 @@ public boolean removeEventProducer(EventProducer eventProducer) {

@Override
public void destroy() {
Iterator<EventProducer> iterator = mEventProducers.iterator();
while (iterator.hasNext()){
EventProducer next = iterator.next();
next.attachSender(null);
next.onRemoved();
next.destroy();
//remove it from list.
iterator.remove();
for(EventProducer eventProducer : mEventProducers){
eventProducer.attachSender(null);
eventProducer.onRemoved();
eventProducer.destroy();
}
mEventProducers.clear();
}
}

0 comments on commit 260db18

Please sign in to comment.