mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 01:38:21 +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();
|
||||
if (!isDeprecationNotice) {
|
||||
this.apiHelper.maintenanceService.getMaintenanceStatus()
|
||||
.subscribe(maintenanceResponse -> {
|
||||
if (!maintenanceResponse.activeMaintenance) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
.compose(this.apiHelper.configureApiCallObserver())
|
||||
.subscribe(maintenanceResponse -> {
|
||||
if (!maintenanceResponse.activeMaintenance) {
|
||||
finish();
|
||||
}
|
||||
}, throwable -> {});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue