Commit Graph

1164 Commits

Author SHA1 Message Date
Tibor Kaputa 48bbb827bf
Merge pull request #342 from KryptKode/feat/camera-x
CameraX: Fix capture/preview resolution
2022-09-21 12:28:46 +02:00
darthpaul 1450f87e0f adjust animations 2022-09-20 18:37:48 +01:00
darthpaul 0686bdae05 reduce shutter animation duration to 200 2022-09-20 18:29:01 +01:00
darthpaul 94cbf213cc use scaling property to animate shutter 2022-09-20 18:25:31 +01:00
darthpaul 0cc5210bd2 animate video shutter icon 2022-09-20 17:50:12 +01:00
darthpaul d9fbc17bff animate shutter icon 2022-09-20 16:51:23 +01:00
darthpaul f02d0b3ae7 prevent reload when re-selecting resolution 2022-09-20 02:19:53 +01:00
darthpaul ea389c5ac9 disable switching modes when recording video 2022-09-20 01:02:52 +01:00
darthpaul f41e8cc4e0 add transitions, 2022-09-20 00:58:39 +01:00
spkprs 899182514e
Update strings.xml 2022-09-05 22:33:25 +03:00
darthpaul 77994d408e UI fixes
- hiding general settings option when child items are hidden
- change icon for 1x1 and full screen
- remove background tint from icons
2022-08-28 02:19:18 +01:00
darthpaul 34c0f0bd6a UI fixes
- hiding button on 3rd party intent
- disabling option to change resolution when capturing media
2022-08-25 19:09:13 +01:00
darthpaul 0fdb751909 cleanup selection of media size
- add MediaSizeStore to manage write/read operations for the media size
2022-08-25 08:42:13 +01:00
darthpaul fd5f64ecf3 add toggling flash mode / media size 2022-08-25 08:30:56 +01:00
darthpaul 64ff75511c fix flash mode selection 2022-08-25 07:58:22 +01:00
darthpaul 5f7b2e0ecb adjust icon colors 2022-08-25 07:23:54 +01:00
darthpaul c220b478c0 UI fixes
- handle top/button margin if there's a cutout with windowInsets.displayCutout
- handle nav bar color
- remove 16:9 size if the full screen size is already 16:9
- change layout to use Button instead of explicit MaterialButton
2022-08-25 06:56:15 +01:00
Milo Ivir 43b05e6607
Translated using Weblate (Croatian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/hr/
2022-08-23 17:17:07 +02:00
darthpaul e6a588a218 simpler UI for flash mode / media size 2022-08-22 14:27:07 +01:00
darthpaul e8744c93f6 remove keepSettingsVisible 2022-08-19 16:27:16 +01:00
darthpaul 2ebeb5a1e4 use tabs for camera modes 2022-08-19 15:24:47 +01:00
darthpaul 4b7166e90f properly hide flash 2022-08-19 00:18:00 +01:00
darthpaul 22df3d8c58 implement shutter animation
- remove animation to blink icons
- implement the shutter animation by setting alpha=1 and animating to alpha=0
2022-08-19 00:00:21 +01:00
darthpaul affcc078dd make preview fill up to the cutoff (notch)
- add theme attribute android:windowLayoutInDisplayCutoutMode to shortEdges in the theme
- add flags FLAG_LAYOUT_NO_LIMITS to the window flags
- add top margin to the icons on top, set to the statusBarHeight
- add bottom margin to the icons at the bottom, set to the navigationBarHeight + view margin
2022-08-18 14:53:25 +01:00
Worldfast 4c81a118df
Translated using Weblate (Hungarian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/hu/
2022-08-17 04:20:16 +02:00
Worldfast 555503b650
Translated using Weblate (Swedish)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/sv/
2022-08-17 04:20:15 +02:00
Worldfast 03f1f96a60
Translated using Weblate (Korean)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ko/
2022-08-17 04:20:15 +02:00
Worldfast 9a6ecd5ac8
Translated using Weblate (Japanese)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ja/
2022-08-17 04:20:15 +02:00
darthpaul d9193f7494 fix preview and capture resolutions
- adjust the preview so the image captured is what the user sees
- add method MySize.isSupported; current support is for full, 16:9, 4:3 and 1:1 of the highest resolution
- cleanup ImageQualityManager, add method to get the full screen resolution which is just the resolution with the largest width
- change the UI to move settings to the top and remove the auto fading
2022-08-17 01:12:18 +01:00
Worldfast ded4e82433
Translated using Weblate (Finnish)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/fi/
2022-08-15 10:15:05 +02:00
Worldfast 15199dc2c8
Translated using Weblate (Danish)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/da/
2022-08-15 10:15:05 +02:00
Worldfast acff6ebf95
Translated using Weblate (Belarusian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/be/
2022-08-12 18:19:23 +02:00
solokot decc6a3c70
Translated using Weblate (Russian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ru/
2022-08-12 18:19:22 +02:00
Eric e01c8af361
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/zh_Hans/
2022-08-11 04:39:08 +02:00
Agnieszka C fea407e4b7
Translated using Weblate (Polish)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pl/
2022-08-11 04:39:08 +02:00
Alan Jacob Mathew 668599b887
Translated using Weblate (Malayalam)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ml/
2022-08-11 04:39:08 +02:00
atilluF e92645b00e
Translated using Weblate (Italian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/it/
2022-08-11 04:39:08 +02:00
liquidvacuum f65fb39bf7
Translated using Weblate (Belarusian)
Currently translated at 34.1% (14 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/be/
2022-08-08 09:18:30 +02:00
Worldfast 0840a8dc5c
Translated using Weblate (Russian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ru/
2022-08-08 09:18:30 +02:00
Ismael Penalva Rodríguez 8cad4cfec5
Translated using Weblate (Spanish)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/es/
2022-08-08 09:18:29 +02:00
Worldfast fcba76e436
Translated using Weblate (Swedish)
Currently translated at 97.5% (40 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/sv/
2022-08-05 20:20:49 +02:00
Worldfast 064a3ca0da
Translated using Weblate (Spanish)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/es/
2022-08-05 20:20:49 +02:00
Worldfast cd502aed66
Translated using Weblate (Portuguese)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pt/
2022-08-04 04:19:50 +02:00
Worldfast 48b54a3153
Translated using Weblate (Romanian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ro/
2022-08-04 04:19:49 +02:00
Worldfast 760d222822
Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/nb_NO/
2022-08-04 04:19:49 +02:00
Worldfast 9c8eb863a7
Translated using Weblate (Lithuanian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/lt/
2022-08-04 04:19:49 +02:00
Worldfast a046defc79
Translated using Weblate (Bulgarian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/bg/
2022-08-01 07:20:34 +02:00
Gabriel Cardoso bfa48cd6c8
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pt_BR/
2022-07-28 21:21:47 +02:00
Artem 9d4d4e0f0f
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/uk/
2022-07-27 09:24:14 +02:00
darthpaul f6235e3b96 always show the navigation bar 2022-07-23 13:12:05 +01:00
Slávek Banko bc5f89a1ff
Translated using Weblate (Czech)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/cs/
2022-07-23 02:18:02 +02:00
solokot 800a78272c
Translated using Weblate (Russian)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ru/
2022-07-20 15:32:11 +02:00
Tibor Kaputa d2878d294a
Merge pull request #335 from KryptKode/feat/camera-x
adjust preview based on selected aspect ratio
2022-07-16 09:19:16 +02:00
darthpaul 231a5f9c3f adjust preview based on selected aspect ratio
- set the preview scale type to fitStart
- both the preview and image capture would use the same size
- some other code cleanups to remove unused code / formatting changes
2022-07-15 21:32:54 +01:00
Oğuz Ersen 9feff19365
Translated using Weblate (Turkish)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/tr/
2022-07-15 16:20:32 +02:00
Josep M. Ferrer 1ab3050c18
Translated using Weblate (Catalan)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ca/
2022-07-14 15:27:16 +02:00
Eric 007ccf0a34
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/zh_Hans/
2022-07-14 15:27:16 +02:00
Agnieszka C b8b46abcd7
Translated using Weblate (Polish)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pl/
2022-07-14 15:27:16 +02:00
Guillaume c2e4ef5f9c
Translated using Weblate (Dutch)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/nl/
2022-07-14 15:27:16 +02:00
Xosé M 7d308f498c
Translated using Weblate (Galician)
Currently translated at 100.0% (41 of 41 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/gl/
2022-07-14 15:27:15 +02:00
tibbi 1dd23d474e fixing the Settings top menu 2022-07-13 23:29:27 +02:00
tibbi 189b245351 do not scroll the settings top bar 2022-07-13 23:26:48 +02:00
tibbi 4fc90d0918 updating the slovak strings 2022-07-13 21:50:03 +02:00
Tibor Kaputa 44bc8af55e
Merge branch 'master' into weblate-simple-mobile-tools-simple-camera 2022-07-13 21:48:37 +02:00
darthpaul 776e842af5 remove logs 2022-07-13 17:08:20 +01:00
darthpaul d020e42635 revert debug applicationIdSuffix and app_name 2022-07-13 16:57:24 +01:00
darthpaul 1929260f8c add strings in other locales 2022-07-13 16:55:01 +01:00
Paul 97632b0e03
Merge branch 'SimpleMobileTools:master' into feat/camera-x 2022-07-13 16:42:20 +01:00
darthpaul 05ec3598b8 Merge remote-tracking branch 'origin/feat/camera-x' into feat/camera-x 2022-07-13 16:39:43 +01:00
darthpaul 9c021c655b do some optimisations for pre SDK 29 devices 2022-07-13 16:39:18 +01:00
darthpaul 6bc74d8066 fix warnings in activity_main
- add contentDescription attribute on the ImageView icons for accessibility
2022-07-13 16:16:17 +01:00
Vitor Henrique f8d8487505
Translated using Weblate (Portuguese (Brazil))
Currently translated at 58.3% (21 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/pt_BR/
2022-07-13 15:17:14 +02:00
Rex_sa 61e15e3fd6
Translated using Weblate (Arabic)
Currently translated at 100.0% (36 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/ar/
2022-07-13 15:17:14 +02:00
Tibor Kaputa 91bc6ccf60
Merge pull request #330 from KryptKode/feat/camera-x
Updates/Fixes for CameraX implementation
2022-07-13 08:54:12 +02:00
Tibor Kaputa 2b4d7db193
Update ChangeResolutionDialogX.kt 2022-07-13 08:53:05 +02:00
Tibor Kaputa 55c4575d03
Update ChangeResolutionDialog.kt 2022-07-13 08:52:36 +02:00
darthpaul 44223d4ba9 refactor VideoQualityManager 2022-07-13 02:54:44 +01:00
darthpaul 99f79e4671 fix settings toolbar 2022-07-13 02:54:32 +01:00
darthpaul 6c1ccd8db7 fix getting video quality 2022-07-13 02:13:02 +01:00
darthpaul 7a55969e6d update commons and camerax 2022-07-13 02:11:38 +01:00
darthpaul 210f3e35c0 use the resolution index instead of the qualities
- store and use the resolution index in Config class for video capture
2022-07-13 01:38:54 +01:00
darthpaul d8ea6d5175 pass rotated resolution to ImageCaptureUsecase
- filter supported resolutions so 0MP resolutions are not selected. CameraX cannot apply these resolutions
2022-07-13 00:54:14 +01:00
Tibor Kaputa c568021e49
Merge pull request #329 from KryptKode/feat/camera-x
Feat/camera x
2022-07-12 23:22:13 +02:00
darthpaul d3d67ec4a4 remove exif info after image capture if user config.savePhotoMetadata == false 2022-07-12 22:15:44 +01:00
Tibor Kaputa bfc367c242
Delete strings.xml 2022-07-11 09:05:49 +02:00
Tibor Kaputa 793fb8781b
Delete strings.xml 2022-07-11 09:05:41 +02:00
Anonymous 33ce7395ed
Translated using Weblate (English (India))
Currently translated at 0.0% (0 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/en_IN/
2022-07-10 23:42:51 +02:00
Weblate 8fc4174ac3
Added translation using Weblate (English (India)) 2022-07-10 23:42:43 +02:00
Anonymous f2b55551b3
Translated using Weblate (English (United Kingdom))
Currently translated at 0.0% (0 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/en_GB/
2022-07-10 23:41:54 +02:00
Weblate 3620f731de
Added translation using Weblate (English (United Kingdom)) 2022-07-10 23:41:46 +02:00
мачко 375f8f7601
Translated using Weblate (Bulgarian)
Currently translated at 83.3% (30 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/bg/
2022-07-10 22:20:45 +02:00
tomechio c7bc397ff2
Translated using Weblate (Finnish)
Currently translated at 86.1% (31 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/fi/
2022-07-10 22:20:45 +02:00
darthpaul e1f292692a properly ensure RECORD_AUDIO permission is requested during camera initialisation
- since allowBackup is set to true in the manifest,
- it is possible for the app to be launch after a fresh install with mIsInPhotoMode=true in MainActivity
- this commit ensure the audio permission is requested at this point
- if the user denies, then it is initialised in photo mode instead
2022-07-10 18:57:01 +01:00
Tibor Kaputa f1b9bf13fe
Merge pull request #327 from KryptKode/feat/camera-x
fix passing bitmap thumbnail after IMAGE_CAPTURE intent
2022-07-09 08:09:43 +02:00
darthpaul d5e1d61d02 fix passing bitmap thumbnail after IMAGE_CAPTURE intent
- add a new BitmapOutput, returned from the MediaOutputHelper when no output URI is specified in an IMAGE_CAPTURE intent
- in this format, take the picture without actually saving it and return the bitmap
- this behaviour is consistent with the implementation described in the official Android docs https://developer.android.com/training/camera/photobasics#TaskPhotoView
2022-07-09 02:55:41 +01:00
zica 9d655b0893
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (36 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/zh_Hant/
2022-07-08 22:33:28 +02:00
zmni 15583523df
Translated using Weblate (Indonesian)
Currently translated at 100.0% (36 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/id/
2022-07-08 22:33:28 +02:00
J. Lavoie 5f6963dd1d
Translated using Weblate (French)
Currently translated at 100.0% (36 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/fr/
2022-07-08 22:33:28 +02:00
J. Lavoie 676d417d3b
Translated using Weblate (German)
Currently translated at 100.0% (36 of 36 strings)

Translation: Simple Mobile Tools/Simple Camera
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera/de/
2022-07-08 22:33:28 +02:00
Tibor Kaputa 63a5985cfa
Merge pull request #325 from spkprs/patch-2
Update strings.xml
2022-07-08 22:33:25 +02:00