fix maintenance loading

This commit is contained in:
Phillip Thelen 2016-05-22 06:04:46 +02:00
parent 4b5265e170
commit 8d704f8f73

View file

@ -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 -> {});
} }
} }