mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Retrieve shared preferences for image name and desc
This commit is contained in:
parent
6605eb070c
commit
1873b843da
1 changed files with 7 additions and 0 deletions
|
|
@ -407,6 +407,13 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
|
||||||
editor.putString("Desc", place.getLongDescription());
|
editor.putString("Desc", place.getLongDescription());
|
||||||
editor.apply();
|
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());
|
openWebView(place.siteLinks.getWikidataLink());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue