1
0
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:
Sergey Trofimov 2015-10-18 09:34:51 +03:00
parent 1c1f8e8535
commit a1fd31c260

View File

@ -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);