From 8d04215b5d8512f0ec5fa822b5b01725224f94f7 Mon Sep 17 00:00:00 2001 From: Shridhar Date: Thu, 24 Jan 2019 22:18:25 +0530 Subject: [PATCH] fix: Trigger image upload in Update Event on clicking anywhere in the ImageView --- .../organizer/core/event/create/UpdateEventFragment.java | 2 +- app/src/main/res/layout/event_create_form.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/eventyay/organizer/core/event/create/UpdateEventFragment.java b/app/src/main/java/com/eventyay/organizer/core/event/create/UpdateEventFragment.java index ad2d21f07..46509bd70 100644 --- a/app/src/main/java/com/eventyay/organizer/core/event/create/UpdateEventFragment.java +++ b/app/src/main/java/com/eventyay/organizer/core/event/create/UpdateEventFragment.java @@ -109,7 +109,7 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, setHasOptionsMenu(true); - binding.form.eventOriginalImage.setOnClickListener(view -> { + binding.form.eventOriginalImageLayout.setOnClickListener(view -> { Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); diff --git a/app/src/main/res/layout/event_create_form.xml b/app/src/main/res/layout/event_create_form.xml index aa4de6026..ef0fb7a46 100644 --- a/app/src/main/res/layout/event_create_form.xml +++ b/app/src/main/res/layout/event_create_form.xml @@ -14,7 +14,6 @@ @@ -30,6 +29,7 @@ android:visibility="@{ event.originalImageUrl == null ? View.GONE : View.VISIBLE }"/>