Skip to content

Commit 2ea966a

Browse files
Fixes #3981 (#3983)
* Start the upload service when needed and not in the MainActivity directly
1 parent 6c55525 commit 2ea966a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/src/main/java/fr/free/nrw/commons/contributions/MainActivity.java

-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ protected void onSaveInstanceState(Bundle outState) {
111111
}
112112

113113
private void initMain() {
114-
//Do not remove this, this triggers the sync service
115-
Intent uploadServiceIntent = new Intent(this, UploadService.class);
116-
uploadServiceIntent.setAction(UploadService.ACTION_START_SERVICE);
117-
startService(uploadServiceIntent);
118-
119114
addTabsAndFragments();
120115
if (contributionsActivityPagerAdapter.getItem(0) != null) {
121116
((ContributionsFragment)contributionsActivityPagerAdapter.getItem(0)).onAuthCookieAcquired();

0 commit comments

Comments
 (0)