mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 03:16:51 +01: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);
|
||||
}
|
||||
} 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);
|
||||
}
|
||||
} else if (mGBDevice != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user