disable switching modes when recording video

This commit is contained in:
darthpaul 2022-09-20 01:02:52 +01:00
parent f41e8cc4e0
commit ea389c5ac9
1 changed files with 4 additions and 2 deletions

View File

@ -658,6 +658,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera
}
override fun onVideoRecordingStarted() {
camera_mode_tab.beInvisible()
shutter.setImageResource(R.drawable.ic_video_stop)
toggle_camera.beInvisible()
change_resolution.isEnabled = false
@ -665,6 +666,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera
}
override fun onVideoRecordingStopped() {
camera_mode_tab.beVisible()
shutter.setImageResource(R.drawable.ic_video_rec)
video_rec_curr_timer.text = 0.getFormattedDuration()
video_rec_curr_timer.beGone()
@ -682,13 +684,13 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener, Camera
}
override fun onSwipeLeft() {
if (!is3rdPartyIntent()) {
if (!is3rdPartyIntent() && camera_mode_tab.isVisible()) {
selectPhotoTab(triggerListener = true)
}
}
override fun onSwipeRight() {
if (!is3rdPartyIntent()) {
if (!is3rdPartyIntent() && camera_mode_tab.isVisible()) {
selectVideoTab(triggerListener = true)
}
}