diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt index 0715fffa..3b070b94 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -73,6 +73,9 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave mIsHardwareShutterHandled = true shutterPressed() true + } else if (config.volumeButtonsAsShutter && (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN || keyCode == KeyEvent.KEYCODE_VOLUME_UP)) { + shutterPressed() + true } else { super.onKeyDown(keyCode, event) }