mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Further code cleanup
This commit is contained in:
		
							parent
							
								
									9446427d0d
								
							
						
					
					
						commit
						283275ab55
					
				
					 2 changed files with 0 additions and 11 deletions
				
			
		|  | @ -23,16 +23,12 @@ public class DirectUpload { | |||
|     private Fragment fragment; | ||||
|     private SharedPreferences prefs; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     DirectUpload(Fragment fragment, ContributionController controller, SharedPreferences prefs) { | ||||
|         this.fragment = fragment; | ||||
|         this.controller = controller; | ||||
|         this.prefs = prefs; | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     void initiateCameraUpload() { | ||||
|         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { | ||||
|             if (ContextCompat.checkSelfPermission(fragment.getActivity(), WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) { | ||||
|  |  | |||
|  | @ -236,13 +236,6 @@ public  class      ShareActivity | |||
|             if (intent.hasExtra("isDirectUpload")) { | ||||
|                 Timber.d("This was initiated by a direct upload from Nearby"); | ||||
|                 isNearbyUpload = true; | ||||
| 
 | ||||
|                 /** | ||||
|                 SharedPreferences sharedPref = this.getSharedPreferences("Direct Upload", Context.MODE_PRIVATE); | ||||
|                 nearbyTitle = sharedPref.getString("Title", ""); | ||||
|                 nearbyDesc = sharedPref.getString("Desc", ""); | ||||
|                 Timber.d("In ShareActivity, image title: " + nearbyTitle + " and image desc: " + nearbyDesc); | ||||
|                  */ | ||||
|             } | ||||
|             mimeType = intent.getType(); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan