1577 Commits

Author SHA1 Message Date
Tibor Kaputa
45e2ba1908
Merge pull request #351 from KryptKode/fix/camera-ui
FIX: UI issues
2022-10-10 08:41:34 +02:00
darthpaul
5085a1388d fix window insets after granting permissions 2022-10-09 23:22:38 +01:00
Tibor Kaputa
f36f65f08e
Merge pull request #350 from KryptKode/feat/camera-x-fixes
FIX: properly play media sound on image capture
2022-10-09 09:17:55 +02:00
Tibor Kaputa
1193fef341
removing an empty line 2022-10-09 09:17:38 +02:00
darthpaul
89bf37d535 formatting: remove duplicate empty lines in ImageSaver 2022-10-09 02:41:25 +01:00
darthpaul
815287b9b2 fix: crash after accepting permission on Android 13+ 2022-10-09 02:33:35 +01:00
darthpaul
57d93f8c31 fix: close app when storage permission is denied 2022-10-08 11:24:39 +01:00
darthpaul
2608822169 hide last taken video icon during video recording
- remove unused methods in MainActivity
- fade out/in the toggle_camera and last_photo_video_preview buttons when video recording is started/stopped
2022-10-08 03:58:47 +01:00
darthpaul
cc3c2108cf properly play media sound on image capture
- instead of using the OnImageSavedCallback, we now use the OnImageCaptureCallback and we play the sound in the onCapturedSuccess method to prevent the user from hearing the capture sound before the actual capture takes place
- add ImageSaver and ImageUtil based on CameraX implementation
- add sealed interfaces ImageCaptureOutput and VideoCaptureOutput to prevent confusion on the supported output format for images and video
- ImageSaver supports saving images with all MediaOutput.ImageCaptureOutput that can be saved to disk; MediaStoreOutput, OutputStreamMediaOutput and FileMediaOutput (unused at the moment), it throws an UnsupportedOperation when trying to save a BitmapOutput.
- with ImageSaver, we now have control of whether the Exif attributes are written to disk and so we can get rid of ExifRemover
- delete the extension method ImageProxy.toJpegByteArray as we have a similar method in ImageUtils class
2022-10-08 03:07:42 +01:00
tibbi
9536995b79 updating commons and gradle 2022-10-07 19:19:06 +02:00
tibbi
516b049e58 renaming and compressing the settings icon 2022-10-07 18:46:33 +02:00
Tibor Kaputa
0e40faf303
Merge pull request #349 from KryptKode/feat/camera-x-fixes
Feat/camera x fixes
2022-10-07 18:45:51 +02:00
darthpaul
6b906d1076 move video timer text to top of shutter 2022-10-06 23:54:11 +01:00
darthpaul
1afd0f515c restore flash mode in photo mode 2022-10-06 23:47:42 +01:00
darthpaul
33e64f84a2 remove unused drawables 2022-10-06 23:38:26 +01:00
darthpaul
3275cf5179 sort resolutions by aspect ratio 2022-10-06 23:37:09 +01:00
darthpaul
a83aa1c2e2 disable settings icon when recording
- disable settings icon when recording video and enable when recording stopped
- create ic_settings vector drawable resource that uses the @color/camera_option_color fillColor for simplicity.
2022-10-06 23:37:03 +01:00
tibbi
b6133a9944 fixing the ripple effect on Language setting item 2022-10-06 20:07:50 +02:00
tibbi
23eeab135a reset some stored config values 2022-10-06 19:45:03 +02:00
tibbi
57aa7405ac use full alpha at ic_photo_full_vector + formatting 2022-10-06 19:42:51 +02:00
tibbi
018b297b41 Merge branch 'master' of github.com:SimpleMobileTools/Simple-Camera 2022-10-06 19:31:59 +02:00
tibbi
a2828b69c4 removing some no longer needed stuff 2022-10-06 19:31:50 +02:00
Tibor Kaputa
c920166eb3
Merge pull request #347 from weblate/weblate-simple-mobile-tools-simple-camera
Translations update from Hosted Weblate
2022-10-06 19:04:19 +02:00
Tibor Kaputa
31b25586a6
Delete video.txt 2022-10-06 19:00:54 +02:00
paula katos
f99f32712b
Translated using Weblate (Romanian)
Currently translated at 100.0% (4 of 4 strings)

Translation: Simple Mobile Tools/Simple Camera metadata
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera-metadata/ro/
2022-10-06 18:54:40 +02:00
gallegonovato
6c9f92ff84
Translated using Weblate (Spanish)
Currently translated at 75.0% (3 of 4 strings)

Translation: Simple Mobile Tools/Simple Camera metadata
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera-metadata/es/
2022-10-06 18:54:40 +02:00
atilluF
7ee9108eed
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-10-06 18:54:40 +02:00
Balázs Meskó
f71f9be788
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-10-06 18:54:40 +02:00
paula katos
b878b88b63
Translated using Weblate (Romanian)
Currently translated at 75.0% (3 of 4 strings)

Translation: Simple Mobile Tools/Simple Camera metadata
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera-metadata/ro/
2022-10-06 18:54:40 +02:00
Josep M. Ferrer
7264a191dd
Translated using Weblate (Catalan)
Currently translated at 100.0% (4 of 4 strings)

Translation: Simple Mobile Tools/Simple Camera metadata
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera-metadata/ca/
2022-10-06 18:54:40 +02:00
paula katos
6356a387ed
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-10-06 18:54:40 +02:00
gallegonovato
c94f16eccd
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-10-06 18:54:40 +02:00
gallegonovato
bc6997966c
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-10-06 18:54:40 +02:00
gallegonovato
5ecb03bfd2
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-10-06 18:54:40 +02:00
tibbi
8f80fcc83f removing some empty lines here and there 2022-10-06 18:54:35 +02:00
tibbi
48fc96158d updating commons 2022-10-06 18:41:03 +02:00
tibbi
adc5e8e36b renaming and compressing some vector images, no real change 2022-10-06 18:40:58 +02:00
Tibor Kaputa
879251e8cb
Merge pull request #348 from KryptKode/feat/camera-x
Camera UI fixes
2022-10-06 18:27:53 +02:00
darthpaul
50601ca31b fix crash due to IndexOutOfBounds on the MaterialToggleGroup
- this seems like a bug on the MaterialToggleGroup; for example, when 4 items are added to it and removed and later on 3 items added, it will crash
- the only feasible fix is to create a new MaterialToggleGroup when displaying the options
- calling invalidate, removeAllViews, etc do not work
2022-10-06 11:09:45 +01:00
darthpaul
315f8f559c close image after capturing as Bitmap 2022-10-05 13:09:21 +01:00
darthpaul
2627638a76 minor fixes for media output and toggling resolution
- handle exception when creating media output
- if only one resolution is supported, no need to restart the camera
2022-09-29 18:05:40 +01:00
darthpaul
c38bab6824 make all top icons Buttons with same height 2022-09-29 17:00:57 +01:00
darthpaul
a324da022a update top layout and icons 2022-09-29 01:09:35 +01:00
darthpaul
c406636492 update CameraX 2022-09-29 00:49:37 +01:00
darthpaul
d9afde41ed handle new storage permissions for API 33
- handle requesting READ_MEDIA_IMAGES and READ_MEDIA_VIDEO for Android 13+
- request WRITE_EXTERNAL_STORAGE for Android 12 and below
- set the permission WRITE_EXTERNAL_STORAGE to maxSdkVersion=32 in the AndroidManifest
2022-09-29 00:49:16 +01:00
Tibor Kaputa
73c737ea67
Merge pull request #346 from weblate/weblate-simple-mobile-tools-simple-camera
Translations update from Hosted Weblate
2022-09-24 11:56:29 +02:00
Agnieszka C
8fe6a215e3
Translated using Weblate (Polish)
Currently translated at 100.0% (4 of 4 strings)

Translation: Simple Mobile Tools/Simple Camera metadata
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-camera-metadata/pl/
2022-09-24 09:25:04 +02:00
Rex_sa
86a1cc30f3
Translated using Weblate (Arabic)
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/ar/
2022-09-24 09:25:03 +02:00
tibbi
bac6880a6d syncing fastlane with google play 2022-09-23 22:36:25 +02:00
darthpaul
1ea0664b7c Merge branch 'master' into feat/camera-x 2022-09-22 00:53:02 +01:00