Main activity now waits for sync adapter to finish