Project

General

Profile

« Previous | Next » 

Revision 3a35681a

Added by Leszek Koltunski over 8 years ago

Bugfix: send EFFECT_REMOVED to all Listeners from EffectQueue.abortAll() !

View differences:

src/main/java/org/distorted/library/EffectQueue.java
199 199
  synchronized int abortAll()
200 200
    {
201 201
    int ret = mNumEffects;
202
    long removedID;
203
    int removedType;
202 204

  
203 205
    for(int i=0; i<ret; i++ )
204 206
      {
205 207
      mInter[0][i] = null;
206 208
      mInter[1][i] = null;
207 209
      mInter[2][i] = null;
210

  
211
      removedID = mID[i];
212
      removedType= mType[i];
213

  
214
      for(int j=0; j<mNumListeners; j++)
215
        EffectMessageSender.newMessage( mListeners.elementAt(j),
216
                                        EffectMessage.EFFECT_REMOVED,
217
                                        (removedID<<EffectTypes.LENGTH)+EffectNames.getType(removedType).type,
218
                                        removedType,
219
                                        mBitmapID,
220
                                        null);
208 221
      }
209 222

  
210 223
    mNumEffects= 0;

Also available in: Unified diff