finalintvisibility=is_panorama_recording?View.GONE:(show_gui_photo&&show_gui_video)?View.VISIBLE:View.GONE;// for UI that is hidden while taking photo or video
finalintvisibility_video=is_panorama_recording?View.GONE:show_gui_photo?View.VISIBLE:View.GONE;// for UI that is only hidden while taking photo
settingsButton.setVisibility(visibility_video);// still allow settings when recording video - arguably we shouldn't, but looks wierd given that the other default icons aren't hidden when recording video