diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java index 0154edee..501b4e4e 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java @@ -549,7 +549,13 @@ public class NewsReaderListActivity extends PodcastFragmentActivity implements protected void onResume() { ThemeChooser.chooseTheme(this); - reloadCountNumbersOfSlidingPaneAdapter(); + //reloadCountNumbersOfSlidingPaneAdapter(); + + //reload adapter - a sync could have been finished + NewsReaderListFragment newsReaderListFragment = getSlidingListFragment(); + if(newsReaderListFragment != null) { + newsReaderListFragment.ReloadAdapter(); + } invalidateOptionsMenu(); diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/OwnCloudSyncService.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/OwnCloudSyncService.java index 734ca082..d64beead 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/OwnCloudSyncService.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/OwnCloudSyncService.java @@ -58,7 +58,7 @@ public class OwnCloudSyncService extends Service { protected static final String TAG = "OwnCloudSyncService"; - private RemoteCallbackList callbacks = new RemoteCallbackList<>(); + private static RemoteCallbackList callbacks = new RemoteCallbackList<>(); private CountDownLatch syncCompletedLatch; private StopWatch syncStopWatch;