mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
* Prevent app from crashing on retry(#2256) * Prevent app from crashing on retry(#2256)
This commit is contained in:
parent
e93564fb79
commit
5cda35c5f5
1 changed files with 3 additions and 1 deletions
|
|
@ -133,6 +133,9 @@ public class ContributionsFragment
|
|||
uploadService = (UploadService) ((HandlerService.HandlerServiceLocalBinder) binder)
|
||||
.getService();
|
||||
isUploadServiceConnected = true;
|
||||
if (contributionsListFragment.getAdapter() != null) {
|
||||
((ContributionsListAdapter)contributionsListFragment.getAdapter()).setUploadService(uploadService);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -322,7 +325,6 @@ public class ContributionsFragment
|
|||
|
||||
contributionsListFragment.clearSyncMessage();
|
||||
notifyAndMigrateDataSetObservers();
|
||||
|
||||
((ContributionsListAdapter)contributionsListFragment.getAdapter()).setUploadService(uploadService);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue