release the equalizer at player destroy

This commit is contained in:
tibbi 2016-07-15 21:30:10 +02:00
parent ee090ea41f
commit e4743cc1b3

View file

@ -502,6 +502,10 @@ public class MusicService extends Service
mBus.unregister(this);
}
if (mEqualizer != null) {
mEqualizer.release();
}
final TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.listen(mIncomingCallReceiver, PhoneStateListener.LISTEN_NONE);