mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Fix BT crash sometimes
This commit is contained in:
parent
a5eadad4d3
commit
78782a71e0
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ public class BluetoothManager extends BroadcastReceiver {
|
|||
|
||||
public BluetoothManager() {
|
||||
isBluetoothConnected = false;
|
||||
mContext = LinphoneManager.getInstance().getContext();
|
||||
mContext = LinphoneService.instance().getApplicationContext();
|
||||
mAudioManager = ((AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE));
|
||||
instance = this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue