make sure the bottom buttons are visible after resume or camera toggle
This commit is contained in:
parent
e56e1f15d1
commit
aa4cf933c6
|
@ -338,6 +338,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
|
||||||
mIsInPhotoMode = !mIsInPhotoMode
|
mIsInPhotoMode = !mIsInPhotoMode
|
||||||
showToggleCameraIfNeeded()
|
showToggleCameraIfNeeded()
|
||||||
checkButtons()
|
checkButtons()
|
||||||
|
toggleBottomButtons(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkButtons() {
|
private fun checkButtons() {
|
||||||
|
@ -464,6 +465,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
|
||||||
}
|
}
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||||
mOrientationEventListener.enable()
|
mOrientationEventListener.enable()
|
||||||
|
toggleBottomButtons(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun resumeCameraItems() {
|
private fun resumeCameraItems() {
|
||||||
|
|
Loading…
Reference in New Issue