mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-04 04:54:10 +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 {
|
} else {
|
||||||
deviceSupport.connect();
|
deviceSupport.connect();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user