Skip to content

Commit

Permalink
Merge pull request #28 from EyeSeeTea/bug-app_crashing_rotating_phone
Browse files Browse the repository at this point in the history
Solved bug crashing app when rotating screen and service is null.
  • Loading branch information
xurxodev authored Jul 10, 2017
2 parents 9300111 + 3a56cc3 commit 6615401
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ public boolean onMenuItemClick(MenuItem item) {
}

boolean isLoading = isDhisServiceBound() &&
getDhisService().isJobRunning(DhisService.SYNC_DASHBOARDS)
(getDhisService().isJobRunning(DhisService.SYNC_DASHBOARDS)
||
getDhisService().isJobRunning(DhisService.SYNC_DASHBOARD_CONTENT)
||
getDhisService().isJobRunning(DhisService.PULL_DASHBOARD_IMAGES);
getDhisService().isJobRunning(DhisService.PULL_DASHBOARD_IMAGES));
if ((savedInstanceState != null &&
savedInstanceState.getBoolean(IS_LOADING)) || isLoading) {
mProgressBar.setVisibility(View.VISIBLE);
Expand Down

0 comments on commit 6615401

Please sign in to comment.