mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 00:33:55 +01:00 
			
		
		
		
	Remove AsyncTask utility methods
This commit is contained in:
		
							parent
							
								
									ef9799ec07
								
							
						
					
					
						commit
						36fe8e3089
					
				
					 6 changed files with 9 additions and 34 deletions
				
			
		| 
						 | 
				
			
			@ -12,7 +12,6 @@ import java.io.IOException;
 | 
			
		|||
 | 
			
		||||
import fr.free.nrw.commons.theme.BaseActivity;
 | 
			
		||||
import fr.free.nrw.commons.CommonsApplication;
 | 
			
		||||
import fr.free.nrw.commons.Utils;
 | 
			
		||||
 | 
			
		||||
public abstract class AuthenticatedActivity extends BaseActivity {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +121,7 @@ public abstract class AuthenticatedActivity extends BaseActivity {
 | 
			
		|||
            // returns, we have a deadlock!
 | 
			
		||||
            // Fixed by explicitly asking this to be executed in parallel
 | 
			
		||||
            // See: https://groups.google.com/forum/?fromgroups=#!topic/android-developers/8M0RTFfO7-M
 | 
			
		||||
            Utils.executeAsyncTask(addAccountTask);
 | 
			
		||||
            addAccountTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
 | 
			
		||||
        } else {
 | 
			
		||||
            GetAuthCookieTask task = new GetAuthCookieTask(curAccount, accountManager);
 | 
			
		||||
            task.execute();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue