Browse Source

Change nodeIndex variable incrementation place.

pull/23/head
Mushegh Sahakyan 4 years ago
parent
commit
26358e9317
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      ui/src/main/java/com/getbubblenow/android/repository/DataRepository.java

+ 5
- 2
ui/src/main/java/com/getbubblenow/android/repository/DataRepository.java View File

@@ -153,11 +153,13 @@ public class DataRepository {
}
}, throwable -> {
Log.d("ERR", "getNodeBaseURI");
getNodeIndex(nodeIndex++,username,password,context,liveData);
nodeIndex++;
getNodeIndex(nodeIndex,username,password,context,liveData);
});
compositeDisposable.add(getNodeBaseURIDisposable);
}, throwable -> {
getNodeIndex(nodeIndex++,username,password,context,liveData);
nodeIndex++;
getNodeIndex(nodeIndex,username,password,context,liveData);
Log.d("ERR", "getSages-login");
});
compositeDisposable.add(disposableLogin);
@@ -216,6 +218,7 @@ public class DataRepository {
.subscribe(listDevices -> {
boolean hasDevice = false;
for (Device item : listDevices) {
//TODO Add errbit for this case
if (UserStore.getInstance(context).getDeviceID().equals(item.getUuid())) {
// UserStore.getInstance(context).setToken(token);
setMutableLiveData(StatusResource.success(null));


Loading…
Cancel
Save