mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 21:06:50 +01:00
Show toast when no valid DeviceSupport found for pairing.
This commit is contained in:
parent
1c1f8e8535
commit
a1fd31c260
@ -183,6 +183,8 @@ public class DeviceCommunicationService extends Service {
|
||||
} else {
|
||||
deviceSupport.connect();
|
||||
}
|
||||
} else {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user