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