mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 08:43:52 +01:00 
			
		
		
		
	Add Dagger usage to FileProcessor
This commit is contained in:
		
							parent
							
								
									bf61d2d8b2
								
							
						
					
					
						commit
						bc1adca999
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -25,6 +25,7 @@ import java.util.List;
 | 
			
		|||
import javax.inject.Inject;
 | 
			
		||||
 | 
			
		||||
import fr.free.nrw.commons.caching.CacheController;
 | 
			
		||||
import fr.free.nrw.commons.di.ApplicationlessInjection;
 | 
			
		||||
import timber.log.Timber;
 | 
			
		||||
 | 
			
		||||
import static com.mapbox.mapboxsdk.Mapbox.getApplicationContext;
 | 
			
		||||
| 
						 | 
				
			
			@ -54,6 +55,7 @@ public class FileProcessor {
 | 
			
		|||
        this.prefs = prefs;
 | 
			
		||||
        this.context = context;
 | 
			
		||||
        useExtStorage = prefs.getBoolean("useExternalStorage", true);
 | 
			
		||||
        ApplicationlessInjection.getInstance(context.getApplicationContext()).getCommonsApplicationComponent().inject(this);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue