mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Finish construction of ContributionController
This commit is contained in:
parent
6517a175cb
commit
3d0f697f70
1 changed files with 3 additions and 2 deletions
|
|
@ -44,6 +44,7 @@ class PlaceRenderer extends Renderer<Place> {
|
|||
private static ArrayList<LinearLayout> openedItems;
|
||||
private Place place;
|
||||
private Fragment fragment;
|
||||
private ContributionController controller;
|
||||
|
||||
|
||||
PlaceRenderer(){
|
||||
|
|
@ -93,7 +94,7 @@ class PlaceRenderer extends Renderer<Place> {
|
|||
//TODO: Set onClickListeners for camera and gallery in list here
|
||||
cameraButton.setOnClickListener(view2 -> {
|
||||
Timber.d("Camera button tapped. Image title: " + place.getName() + "Image desc: " + place.getLongDescription());
|
||||
controller = new ContributionController(this);
|
||||
controller = new ContributionController(fragment);
|
||||
DirectUpload directUpload = new DirectUpload(this, controller, prefs);
|
||||
storeSharedPrefs();
|
||||
directUpload.initiateCameraUpload();
|
||||
|
|
@ -101,7 +102,7 @@ class PlaceRenderer extends Renderer<Place> {
|
|||
|
||||
galleryButton.setOnClickListener(view3 -> {
|
||||
Timber.d("Gallery button tapped. Image title: " + place.getName() + "Image desc: " + place.getLongDescription());
|
||||
controller = new ContributionController(this);
|
||||
controller = new ContributionController(fragment);
|
||||
DirectUpload directUpload = new DirectUpload(this, controller, prefs);
|
||||
storeSharedPrefs();
|
||||
directUpload.initiateGalleryUpload();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue