rename the photo video toggling functions
This commit is contained in:
parent
fa9eb58012
commit
e44e1ccdbf
|
@ -323,20 +323,20 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
|
|||
|
||||
private fun checkButtons() {
|
||||
if (mIsInPhotoMode) {
|
||||
initPhotoButtons()
|
||||
initPhotoMode()
|
||||
} else {
|
||||
tryInitVideoButtons()
|
||||
tryInitVideoMode()
|
||||
}
|
||||
}
|
||||
|
||||
private fun initPhotoButtons() {
|
||||
private fun initPhotoMode() {
|
||||
toggle_photo_video.setImageDrawable(mRes.getDrawable(R.drawable.ic_video))
|
||||
shutter.setImageDrawable(mRes.getDrawable(R.drawable.ic_shutter))
|
||||
mPreview?.initPhotoMode()
|
||||
setupPreviewImage(true)
|
||||
}
|
||||
|
||||
private fun tryInitVideoButtons() {
|
||||
private fun tryInitVideoMode() {
|
||||
if (mPreview?.initRecorder() == true) {
|
||||
initVideoButtons()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue