Skip to content

Commit

Permalink
#152 Welcome wizard - Domoticz server version not shown
Browse files Browse the repository at this point in the history
#152  Welcome wizard - Domoticz server version not shown
  • Loading branch information
galadril committed Dec 30, 2015
1 parent 675a5b3 commit 362102a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,13 @@ private void checkConnectionData() {
@Override
public void onReceiveVersion(String version) {
tempText = getString(R.string.welcome_msg_serverVersion) + ": " + version;
setSuccessText(tempText);

mDomoticz.getDevices(new DevicesReceiver() {
@Override
public void onReceiveDevices(ArrayList<DevicesInfo> mDevicesInfo) {
tempText = tempText + "\n";
tempText += "\n";
String formatted = String.format(getString(R.string.welcome_msg_numberOfDevices), mDevicesInfo.size());
tempText = tempText + formatted;
tempText += formatted;
setSuccessText(tempText);
}

Expand All @@ -82,6 +81,7 @@ public void onReceiveDevice(DevicesInfo mDevicesInfo) {

@Override
public void onError(Exception error) {
setSuccessText(tempText);//no devices found
}
}, 0, null);
}
Expand Down

0 comments on commit 362102a

Please sign in to comment.