Merge "Ringtone: clear the MediaPlayer listener upon completion" into nyc-mr1-dev

This commit is contained in:
Andy Hung
2016-10-18 18:14:59 +00:00
committed by Android (Google) Code Review

View File

@@ -469,6 +469,7 @@ public class Ringtone {
synchronized (sActiveRingtones) {
sActiveRingtones.remove(Ringtone.this);
}
mp.setOnCompletionListener(null); // Help the Java GC: break the refcount cycle.
}
}
}