mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	Retrieve shared preferences for image name and desc
This commit is contained in:
		
							parent
							
								
									b5a18ce948
								
							
						
					
					
						commit
						8e214bdabd
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -392,6 +392,13 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment { | |||
|             editor.putString("Desc", place.getLongDescription()); | ||||
|             editor.apply(); | ||||
| 
 | ||||
|             //TODO: Shift this into title/desc screen after upload initiated | ||||
|             sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); | ||||
|             String imageTitle = sharedPref.getString("Title", ""); | ||||
|             String imageDesc = sharedPref.getString("Desc", ""); | ||||
| 
 | ||||
|             Timber.d("After shared prefs, image title: " + imageTitle + " Image desc: " + imageDesc); | ||||
| 
 | ||||
|             openWebView(place.siteLinks.getWikidataLink()); | ||||
|         }); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan