commit | b01b0edc1212d3aa928c6b405121dd5e2f6b8cff | [log] [tgz] |
---|---|---|
author | LuK1337 <priv.luk@gmail.com> | Tue Aug 23 09:52:26 2022 +0200 |
committer | LuK1337 <priv.luk@gmail.com> | Thu Sep 29 22:28:29 2022 +0200 |
tree | 091e315cd94f257db1cefe4369677a886fa39601 | |
parent | 5e3ea83fec5472f810fbd8d70a7aa0f7a4af864b [diff] |
Aperture: Ignore repeated key events Change-Id: Iadab87385a9ce962b2882397c679ef7d645338e7
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt index 51e74bc..8b2d52d 100644 --- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt +++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -411,7 +411,7 @@ return when (keyCode) { KeyEvent.KEYCODE_VOLUME_UP, KeyEvent.KEYCODE_VOLUME_DOWN -> { - if (shutterButton.isEnabled) { + if (shutterButton.isEnabled && event?.repeatCount == 0) { shutterButton.performClick() } true