1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 09:35:50 +01:00

Fix app crash when switching between Android user profiles

This commit is contained in:
Arjan Schrijver 2024-12-13 21:38:38 +01:00
parent 839cbcd3e5
commit c918765931

View File

@ -168,6 +168,13 @@ public abstract class BtClassicIoThread extends GBDeviceIoThread {
mOutStream = null;
mBtSocket = null;
return false;
} catch (SecurityException e) {
LOG.error("Could not connect to device.", e);
setUpdateState(originalState);
mInStream = null;
mOutStream = null;
mBtSocket = null;
return false;
}
initialize();