mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Injected the ModifierSequenceDao where needed.
This commit is contained in:
		
							parent
							
								
									9927879680
								
							
						
					
					
						commit
						874627e3f5
					
				
					 9 changed files with 49 additions and 32 deletions
				
			
		|  | @ -24,6 +24,7 @@ import fr.free.nrw.commons.upload.UploadController; | |||
| 
 | ||||
| import static android.content.Context.MODE_PRIVATE; | ||||
| import static fr.free.nrw.commons.contributions.ContributionsContentProvider.CONTRIBUTION_AUTHORITY; | ||||
| import static fr.free.nrw.commons.modifications.ModificationsContentProvider.MODIFICATIONS_AUTHORITY; | ||||
| 
 | ||||
| @Module | ||||
| @SuppressWarnings({"WeakerAccess", "unused"}) | ||||
|  | @ -53,6 +54,12 @@ public class CommonsApplicationModule { | |||
|         return application.getContentResolver().acquireContentProviderClient(CONTRIBUTION_AUTHORITY); | ||||
|     } | ||||
| 
 | ||||
|     @Provides | ||||
|     @Named("modification") | ||||
|     public ContentProviderClient provideModificationContentProviderClient() { | ||||
|         return application.getContentResolver().acquireContentProviderClient(MODIFICATIONS_AUTHORITY); | ||||
|     } | ||||
| 
 | ||||
|     @Provides | ||||
|     @Named("application_preferences") | ||||
|     public SharedPreferences providesApplicationSharedPreferences() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Paul Hawke
						Paul Hawke