mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-24 17:45:50 +01:00
Fix app crash when switching between Android user profiles
This commit is contained in:
parent
839cbcd3e5
commit
c918765931
@ -168,6 +168,13 @@ public abstract class BtClassicIoThread extends GBDeviceIoThread {
|
|||||||
mOutStream = null;
|
mOutStream = null;
|
||||||
mBtSocket = null;
|
mBtSocket = null;
|
||||||
return false;
|
return false;
|
||||||
|
} catch (SecurityException e) {
|
||||||
|
LOG.error("Could not connect to device.", e);
|
||||||
|
setUpdateState(originalState);
|
||||||
|
mInStream = null;
|
||||||
|
mOutStream = null;
|
||||||
|
mBtSocket = null;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
initialize();
|
initialize();
|
||||||
|
Loading…
Reference in New Issue
Block a user