mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
fix maintenance loading
This commit is contained in:
parent
4b5265e170
commit
8d704f8f73
1 changed files with 6 additions and 5 deletions
|
|
@ -66,11 +66,12 @@ public class MaintenanceActivity extends BaseActivity {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
if (!isDeprecationNotice) {
|
if (!isDeprecationNotice) {
|
||||||
this.apiHelper.maintenanceService.getMaintenanceStatus()
|
this.apiHelper.maintenanceService.getMaintenanceStatus()
|
||||||
.subscribe(maintenanceResponse -> {
|
.compose(this.apiHelper.configureApiCallObserver())
|
||||||
if (!maintenanceResponse.activeMaintenance) {
|
.subscribe(maintenanceResponse -> {
|
||||||
finish();
|
if (!maintenanceResponse.activeMaintenance) {
|
||||||
}
|
finish();
|
||||||
});
|
}
|
||||||
|
}, throwable -> {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue