mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fix BT crash when app is closed
This commit is contained in:
parent
c7203057f0
commit
cb5d2a0f30
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ import android.os.Build;
|
|||
public class BluetoothManager extends BroadcastReceiver {
|
||||
@SuppressWarnings("deprecation")
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (!LinphoneManager.isInstanciated())
|
||||
return;
|
||||
|
||||
String action = intent.getAction();
|
||||
LinphoneManager lm = LinphoneManager.getInstance();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue