mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Copy camera and gallery onClickListeners over from map
This commit is contained in:
parent
eddfab9407
commit
307a0acb5d
1 changed files with 15 additions and 0 deletions
|
|
@ -84,6 +84,21 @@ class PlaceRenderer extends Renderer<Place> {
|
||||||
});
|
});
|
||||||
|
|
||||||
//TODO: Set onClickListeners for camera and gallery in list here
|
//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);
|
||||||
|
DirectUpload directUpload = new DirectUpload(this, controller, prefs);
|
||||||
|
storeSharedPrefs();
|
||||||
|
directUpload.initiateCameraUpload();
|
||||||
|
});
|
||||||
|
|
||||||
|
galleryButton.setOnClickListener(view3 -> {
|
||||||
|
Timber.d("Gallery button tapped. Image title: " + place.getName() + "Image desc: " + place.getLongDescription());
|
||||||
|
controller = new ContributionController(this);
|
||||||
|
DirectUpload directUpload = new DirectUpload(this, controller, prefs);
|
||||||
|
storeSharedPrefs();
|
||||||
|
directUpload.initiateGalleryUpload();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void closeLayout(LinearLayout buttonLayout){
|
private void closeLayout(LinearLayout buttonLayout){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue