Fix BT crash sometimes

This commit is contained in:
Sylvain Berfini 2014-10-28 13:57:56 +01:00
parent d75c6f2ccb
commit d6ea66cab1

View file

@ -68,7 +68,7 @@ public class BluetoothManager extends BroadcastReceiver {
public BluetoothManager() { public BluetoothManager() {
isBluetoothConnected = false; isBluetoothConnected = false;
mContext = LinphoneManager.getInstance().getContext(); mContext = LinphoneService.instance().getApplicationContext();
mAudioManager = ((AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE)); mAudioManager = ((AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE));
instance = this; instance = this;
} }