From 7cfbe104bbf1af7ceb4181f937902c805390041c Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Wed, 18 Sep 2024 14:28:19 -0400 Subject: [PATCH] add camera shortcut option --- app/src/main/AndroidManifest.xml | 4 ++++ .../org/witness/proofmode/MainActivity.kt | 9 ++++++++ app/src/main/res/xml/shortcuts.xml | 22 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 app/src/main/res/xml/shortcuts.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 169477f6..aac86595 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -91,6 +91,10 @@ + + openCamera() } + + if (intent?.action == ACTION_OPEN_CAMERA) + { + openCamera() + } } private fun itemsSelected(selected: Boolean) { diff --git a/app/src/main/res/xml/shortcuts.xml b/app/src/main/res/xml/shortcuts.xml new file mode 100644 index 00000000..268bbc93 --- /dev/null +++ b/app/src/main/res/xml/shortcuts.xml @@ -0,0 +1,22 @@ + + + + + + + + + + \ No newline at end of file