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

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

Disable take photo view when in qr mode

parent 7c069880
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1264,6 +1264,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("");