changes to enter the app when servise is not available, rollback themgit status

This commit is contained in:
2020-11-13 20:45:47 +03:00
parent 1fac25037e
commit 451d892709
3 changed files with 6 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ public class SplashActivity extends BaseActivity {
else {
DialogHelper.hideLoadingDialog();
ApiErrorUtils.parseError(response);
getStoreList();
}
}
@@ -128,6 +129,7 @@ public class SplashActivity extends BaseActivity {
public void onFailure(Call<ResponseObject<String>> call, Throwable t) {
DialogHelper.hideLoadingDialog();
DialogHelper.showFailedDialog();
getStoreList();
}
});
}
@@ -266,6 +268,7 @@ public class SplashActivity extends BaseActivity {
else{
DialogHelper.hideLoadingDialog();
ApiErrorUtils.parseError(response);
getCategoryList();
}
}
@@ -273,6 +276,7 @@ public class SplashActivity extends BaseActivity {
public void onFailure(Call<ResponseObject<WelcomeMessageModel>> call, Throwable t) {
DialogHelper.hideLoadingDialog();
DialogHelper.showFailedDialog();
getCategoryList();
}
});
}