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();
if (!isDeprecationNotice) {
this.apiHelper.maintenanceService.getMaintenanceStatus()
.subscribe(maintenanceResponse -> {
if (!maintenanceResponse.activeMaintenance) {
finish();
}
});
.compose(this.apiHelper.configureApiCallObserver())
.subscribe(maintenanceResponse -> {
if (!maintenanceResponse.activeMaintenance) {
finish();
}
}, throwable -> {});
}
}