mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Cleanup CommonsApplication Singelton
This commit is contained in:
		
							parent
							
								
									45a19620b9
								
							
						
					
					
						commit
						bdfbdc7579
					
				
					 29 changed files with 116 additions and 83 deletions
				
			
		|  | @ -61,7 +61,7 @@ public class ModificationsSyncAdapter extends AbstractThreadedSyncAdapter { | |||
|             return; | ||||
|         } | ||||
| 
 | ||||
|         MWApi api = CommonsApplication.createMWApi(); | ||||
|         MWApi api = CommonsApplication.getInstance().getMWApi(); | ||||
|         api.setAuthCookie(authCookie); | ||||
|         String editToken; | ||||
| 
 | ||||
|  |  | |||
|  | @ -15,7 +15,7 @@ public class ModificationsSyncService extends Service { | |||
|         super.onCreate(); | ||||
|         synchronized (sSyncAdapterLock) { | ||||
|             if (sSyncAdapter == null) { | ||||
|                 sSyncAdapter = new ModificationsSyncAdapter(getApplicationContext(), true); | ||||
|                 sSyncAdapter = new ModificationsSyncAdapter(this, true); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 addshore
						addshore