Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f97b4e9d authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Disable take photo view when in qr mode

parent 6f91283d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1285,6 +1285,12 @@ public class MainUI {
                content_description = R.string.take_photo;
                switch_video_content_description = R.string.switch_to_video;
            }

            /* for qr we just make the drawable empty
            so as to not break constraints
            the view is still clickable */
            view.setEnabled(!isQrMode);

            view.setImageResource(resource);
            if (content_description==0) {
                view.setContentDescription("");