mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-08 07:28:32 +02:00
Pass the exception to GB.toast()
This commit is contained in:
parent
ef15bf8ce8
commit
86d17c7792
@ -187,7 +187,7 @@ public class DeviceCommunicationService extends Service {
|
|||||||
GB.toast(this, getString(R.string.cannot_connect, "Can't create device support"), Toast.LENGTH_SHORT, GB.ERROR);
|
GB.toast(this, getString(R.string.cannot_connect, "Can't create device support"), Toast.LENGTH_SHORT, GB.ERROR);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
GB.toast(this, getString(R.string.cannot_connect, e.getMessage()), Toast.LENGTH_SHORT, GB.ERROR);
|
GB.toast(this, getString(R.string.cannot_connect, e.getMessage()), Toast.LENGTH_SHORT, GB.ERROR, e);
|
||||||
setDeviceSupport(null);
|
setDeviceSupport(null);
|
||||||
}
|
}
|
||||||
} else if (mGBDevice != null) {
|
} else if (mGBDevice != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user