== -> equals

This commit is contained in:
Milos Kozak 2018-11-01 07:54:29 +01:00
parent b73cbacbf5
commit 23a58c2fc1

View file

@ -663,7 +663,7 @@ public class BLEComm {
private void SendPumpCheck() { private void SendPumpCheck() {
// 1st message sent to pump after connect // 1st message sent to pump after connect
String devicename = getConnectDeviceName(); String devicename = getConnectDeviceName();
if(devicename == null || devicename == ""){ if(devicename == null || devicename.equals("")){
Notification n = new Notification(Notification.DEVICENOTPAIRED, MainApp.gs(R.string.pairfirst), Notification.URGENT); Notification n = new Notification(Notification.DEVICENOTPAIRED, MainApp.gs(R.string.pairfirst), Notification.URGENT);
MainApp.bus().post(new EventNewNotification(n)); MainApp.bus().post(new EventNewNotification(n));
return; return;