unblock the service callback

This commit is contained in:
Max Lv
2014-02-28 17:27:23 +08:00
parent 110a4eb096
commit c442963394
3 changed files with 5 additions and 6 deletions
@@ -106,9 +106,8 @@ trait BaseService {
override def run() {
if (state != s) {
val n = callbacks.beginBroadcast()
val m = if (msg != null) msg.substring(0, 64) else null
for (i <- 0 to n - 1) {
callbacks.getBroadcastItem(i).stateChanged(s, m)
callbacks.getBroadcastItem(i).stateChanged(s, msg)
}
callbacks.finishBroadcast()
state = s