mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Save categories in PlaceRenderer and SingleUploadFragment
This commit is contained in:
parent
8133ba1d23
commit
5e828d4541
2 changed files with 4 additions and 0 deletions
|
|
@ -124,6 +124,7 @@ public class PlaceRenderer extends Renderer<Place> {
|
|||
Timber.d("directPrefs stored");
|
||||
editor.putString("Title", place.getName());
|
||||
editor.putString("Desc", place.getLongDescription());
|
||||
editor.putString("Category", place.getCategory());
|
||||
editor.apply();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,6 +114,9 @@ public class SingleUploadFragment extends CommonsDaggerSupportFragment {
|
|||
if (isNearbyUpload) {
|
||||
String imageTitle = directPrefs.getString("Title", "");
|
||||
String imageDesc = directPrefs.getString("Desc", "");
|
||||
//TODO: Remove this later, this fragment does not need to know categories
|
||||
String imageCats = directPrefs.getString("Category", "");
|
||||
Timber.d("Image title: " + imageTitle + ", image desc: " + imageDesc + ", image categories: " + imageCats);
|
||||
titleEdit.setText(imageTitle);
|
||||
descEdit.setText(imageDesc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue