Show toast when no valid DeviceSupport found for pairing.

here
Sergey Trofimov 2015-10-18 09:34:51 +03:00
parent 1c1f8e8535
commit a1fd31c260
1 changed files with 2 additions and 0 deletions

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