release the equalizer at player destroy
This commit is contained in:
parent
ee090ea41f
commit
e4743cc1b3
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue