* Start the upload service when needed and not in the MainActivity directly
This commit is contained in:
Ashish 2020-10-26 11:20:20 +05:30 committed by GitHub
parent 6c55525a43
commit 2ea966ab09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,11 +111,6 @@ public class MainActivity extends NavigationBaseActivity implements FragmentMana
}
private void initMain() {
//Do not remove this, this triggers the sync service
Intent uploadServiceIntent = new Intent(this, UploadService.class);
uploadServiceIntent.setAction(UploadService.ACTION_START_SERVICE);
startService(uploadServiceIntent);
addTabsAndFragments();
if (contributionsActivityPagerAdapter.getItem(0) != null) {
((ContributionsFragment)contributionsActivityPagerAdapter.getItem(0)).onAuthCookieAcquired();