show the bottom buttons on resume only if we have the permissions already

This commit is contained in:
tibbi
2017-05-07 15:58:00 +02:00
parent 520a2b160e
commit 5115739a96

View File

@ -466,10 +466,10 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
togglePhotoVideo() togglePhotoVideo()
checkButtons() checkButtons()
} }
toggleBottomButtons(false)
} }
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() {