mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Get rid of other singletons
This commit is contained in:
		
							parent
							
								
									bdfbdc7579
								
							
						
					
					
						commit
						c712b561d4
					
				
					 7 changed files with 31 additions and 31 deletions
				
			
		|  | @ -9,6 +9,7 @@ import android.database.sqlite.SQLiteQueryBuilder; | |||
| import android.net.Uri; | ||||
| import android.text.TextUtils; | ||||
| 
 | ||||
| import fr.free.nrw.commons.CommonsApplication; | ||||
| import fr.free.nrw.commons.data.DBOpenHelper; | ||||
| import timber.log.Timber; | ||||
| 
 | ||||
|  | @ -35,7 +36,7 @@ public class ModificationsContentProvider extends ContentProvider{ | |||
|     private DBOpenHelper dbOpenHelper; | ||||
|     @Override | ||||
|     public boolean onCreate() { | ||||
|         dbOpenHelper = DBOpenHelper.getInstance(getContext()); | ||||
|         dbOpenHelper = CommonsApplication.getInstance().getDBOpenHelper(); | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 addshore
						addshore