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 {
|
||||
@SuppressWarnings("deprecation")
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (!LinphoneManager.isInstanciated())
|
||||
return;
|
||||
|
||||
String action = intent.getAction();
|
||||
LinphoneManager lm = LinphoneManager.getInstance();
|
||||
|
||||
|
|
Loading…
Reference in a new issue