Fix BT crash sometimes
This commit is contained in:
parent
d75c6f2ccb
commit
d6ea66cab1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue