Commit Graph

814 Commits

Author SHA1 Message Date
tibbi ff85805636 send setRecordingState false to CameraOne only if the recording is really stoping 2018-06-11 11:06:32 +02:00
tibbi a39e7ad233 update the front/read camera icon as appropriate at toggling 2018-06-10 23:46:00 +02:00
tibbi 3daa79590f fix a glitch at remembering front/back camera 2018-06-10 23:42:18 +02:00
tibbi 594c024cd1 adding some brackets at checking front/back camera 2018-06-10 23:20:44 +02:00
tibbi 9dc29390f1 properly init front/back camera 2018-06-10 23:08:18 +02:00
tibbi e240e0752f init photo mode by default 2018-06-10 23:04:02 +02:00
tibbi 84199fb858 recognize 19:9 and 19:8 aspect ratios better 2018-06-10 22:51:22 +02:00
tibbi 24036931cd limit available video sizes by max width and height 2018-06-10 22:43:32 +02:00
tibbi 39c9227844 stop recording at changing the resolution if needed 2018-06-10 22:14:16 +02:00
tibbi d533b18a91 make sure the aspect ratio is always updated on the main thread 2018-06-10 21:18:28 +02:00
tibbi 5f0a1d0475 remember last used focus area, set it again after capturing an image 2018-06-10 14:56:37 +02:00
Tibor Kaputa a24a3979d2
Merge pull request #166 from FatihFIRINCI/patch-1
Create Turkish strings.xml
2018-06-10 14:18:08 +02:00
tibbi 8443aac425 release the mediarecorder at closing the camera too 2018-06-10 12:51:38 +02:00
Fatih Fırıncı bd0f768a82
Create strings.xml 2018-06-10 13:36:35 +03:00
tibbi 2b6370c77e fix some focusing glitches on Android 8 2018-06-10 11:47:05 +02:00
tibbi fc058e2f05 catch exceptions thrown at saving images 2018-06-10 11:46:53 +02:00
tibbi 104eca5196 update every button clickability on the main thread 2018-06-08 22:46:15 +02:00
tibbi afa5a46303 fix some camera state glitches around recording and capturing 2018-06-08 22:38:02 +02:00
tibbi 13d4f25810 add sounds to shutter actions 2018-06-08 18:48:14 +02:00
tibbi e33d550ba6 catch all exceptions thrown during focus or zoom 2018-06-08 14:17:38 +02:00
tibbi d7c4c76640 avoid launching multiple shutter actions at pressing volumes 2018-06-08 14:11:43 +02:00
tibbi d57eb9ef98 add camera state check to video recording toggle too 2018-06-08 13:59:28 +02:00
tibbi ac3a09dd85 avoid shutter actions when not in state_preview state 2018-06-08 13:54:46 +02:00
tibbi b4cb2dd0bb focus before capturing the image only if Focus before capture is enabled 2018-06-08 12:13:55 +02:00
tibbi 885df0ef88 disable showing photo preview after capturing on Android 5+ 2018-06-08 12:06:51 +02:00
tibbi 55fbe8dd4b make sure the back camera is always open by default, if selected so 2018-06-08 12:02:07 +02:00
tibbi 4d06be8b4d fix focusing during recording 2018-06-07 23:36:33 +02:00
tibbi 57698fb817 set a control capture intent at recording 2018-06-07 15:41:42 +02:00
tibbi 31d7ee2663 make sure we have a valid capture session at focusing and zooming 2018-06-07 13:42:22 +02:00
tibbi a037fd5761 catch all exceptions thrown at opening the camera 2018-06-07 11:33:18 +02:00
tibbi 6536bb707f removing some empty line and stacktrace 2018-06-07 11:21:11 +02:00
tibbi 40bc253bd8 allow toggling flashlight during recording too 2018-06-06 22:48:22 +02:00
tibbi f83a841ae4 allow toggling flashlight at recording preview 2018-06-06 22:41:56 +02:00
tibbi 8ae6c32206 use a background thread for restarting the camera after recording 2018-06-06 22:28:14 +02:00
tibbi 6c885c83c2 add some video recording handling 2018-06-06 21:50:09 +02:00
tibbi 9e3e732bbf handle toggling between photo and video modes 2018-06-06 15:09:09 +02:00
tibbi 440180f79a list proper video resolutions at the resolution picker dialog 2018-06-05 23:49:19 +02:00
tibbi ea640f96ca minor code style cleanup 2018-06-05 23:16:34 +02:00
tibbi 045328daa3 remember which camera was used last, open it by default 2018-06-05 22:19:27 +02:00
tibbi 3f23f017d2 set the flash icon to Off at hiding to avoid glitches at reshowing 2018-06-05 21:25:23 +02:00
tibbi 6a1cc57c00 improve the camera behaviour at changing the resolution 2018-06-05 21:07:45 +02:00
tibbi f1359e1909 make sure we select proper preview aspect ratio 2018-06-05 20:25:02 +02:00
tibbi acea2ce5f2 flip front photos horizontally by default 2018-06-05 13:50:42 +02:00
tibbi 686f37b32a catch all exceptions at setting up the preview session 2018-06-05 13:17:57 +02:00
tibbi aae28aeb03 show a list of available photo resolutions at pressing Change Resolution 2018-06-05 11:37:50 +02:00
Tibor Kaputa d1000697cc
Merge pull request #165 from GuepardoApps/master
Updated german translations
2018-06-05 09:39:38 +02:00
Tibor Kaputa 5c799b4f56
reverting some app description strings 2018-06-05 09:39:29 +02:00
tibbi 5704e58164 do not even draw the Focus circle if the current camera doesnt support focus 2018-06-04 23:12:53 +02:00
tibbi b0ba502795 hide the Flashlight toggle button if no flash is available 2018-06-04 23:09:29 +02:00
tibbi f5e347c09e add handling for front/back camera toggling 2018-06-04 23:06:33 +02:00
tibbi c75f1cabfa properly rotate the image in selfie mode 2018-06-04 22:10:35 +02:00
Jonas Schubert ccfb2ee22f Updated german translations 2018-06-04 22:00:59 +02:00
tibbi 7e0b355438 skip focusing before image capture if the current camera doesnt support focus 2018-06-04 21:48:54 +02:00
tibbi 617ac98e5d pass available resolutions to the picker dialog in a new MySize type list 2018-06-04 16:08:23 +02:00
tibbi ebb6e89dd6 send a boolean at resolution changing dialog to mark front/back camera 2018-06-04 15:36:17 +02:00
tibbi 16a2745652 properly handle autoexposure and auto flash 2018-06-04 14:56:25 +02:00
fricyo 7d6fb5c74c
Update Translation 2018-06-04 17:45:29 +08:00
tibbi df33bf0ddf set AutoFocus to Idle instead of Cancel after taking a picture 2018-06-04 10:28:07 +02:00
tibbi cc63675e3a update crop region permanently after zooming in/out 2018-06-01 22:58:50 +02:00
tibbi ac529cd07f do not mess with CONTROL_AF_MODE at touch-to-focus 2018-06-01 21:26:11 +02:00
tibbi 4d640d7d5a shortening some code 2018-06-01 20:24:54 +02:00
tibbi bbe2ba171d replace textureView click listener with manual touch events checking 2018-06-01 20:06:21 +02:00
tibbi 1708bf562a make sure a proper photo section is captured at zooming in 2018-06-01 16:40:02 +02:00
tibbi f26cc4c2f0 use proper capture callback and background handler at focusing 2018-06-01 16:27:35 +02:00
tibbi a52586165c add zooming by gestures 2018-06-01 14:32:09 +02:00
tibbi 1531f89ea4 changing some float number declarations 2018-06-01 12:15:44 +02:00
tibbi 67b3b50fa8 improving the Touch To Focus functionality 2018-06-01 11:59:37 +02:00
tibbi 94488adb24 make sure the bottom button visibility is updated on the main thread 2018-05-31 12:44:24 +02:00
tibbi a8aba856b7 removing an Equals sign 2018-05-30 23:13:27 +02:00
tibbi bf314ecf22 add a helper function for getting the camer amanager 2018-05-30 23:10:26 +02:00
tibbi b25beb3a34 moving some code in if statement 2018-05-30 23:03:12 +02:00
tibbi 5c6d4132cb adding some touch to focus handling 2018-05-30 22:58:12 +02:00
tibbi 328c4300a5 update mLastClickX and Y only at Down action 2018-05-30 21:26:16 +02:00
tibbi 7ffe53a0ae draw a focus circle at pressing the preview 2018-05-30 17:50:15 +02:00
tibbi 292e2f6ad0 lets remove PreviewListener interface, call activity functions directly 2018-05-30 17:27:30 +02:00
tibbi dfcb72b7f6 add a click listener for focusing 2018-05-30 17:22:36 +02:00
tibbi 7ff48fc880 removing another redundant function 2018-05-30 16:40:46 +02:00
tibbi 250bf176c1 removing a redundant variable 2018-05-30 16:35:13 +02:00
tibbi 7d5a60f13d fix the rotation of images captured with Camera2 api 2018-05-30 16:11:23 +02:00
tibbi 184f87aab1 removing a redundant function 2018-05-30 15:02:26 +02:00
tibbi 410822bd38 always set camera state to STATE_PICTURE_TAKEN at capturing 2018-05-30 14:56:53 +02:00
tibbi 27fb68704b show the bottom buttons after taking a photo 2018-05-30 14:50:48 +02:00
tibbi 9cb94fc5e6 OCD 2018-05-30 14:32:01 +02:00
tibbi f8dea07ebe send the device rotation to photo saver + cleanup 2018-05-30 14:28:52 +02:00
tibbi 4b17fbf3d3 removing some redundant code, since there is portrait orientation forced 2018-05-30 13:40:14 +02:00
tibbi 49bd2b1be9 add photo saving with Camera2 api 2018-05-30 13:19:15 +02:00
tibbi a894f6e01c properly close the camera on pause 2018-05-30 11:21:02 +02:00
tibbi c69e34a9b4 make sure flashlight changes are ignored if the device has no flashlight 2018-05-30 11:10:56 +02:00
Xosé M 71d6322ee4 actualiza idioma 2018-05-30 08:01:56 +02:00
tibbi d01ad834f6 add a toggle for selecting if front/rear camera should be used 2018-05-29 23:42:23 +02:00
tibbi 3d7ec35e3b handle auto flash too 2018-05-29 20:38:55 +02:00
tibbi 3fd08d3940 fix toggling between flash on/off 2018-05-29 19:56:45 +02:00
tibbi 4aed627b7c simplify a flashlight state check 2018-05-29 00:00:34 +02:00
tibbi 209700dc72 toggle Camera availability when appropriate 2018-05-28 22:43:38 +02:00
tibbi c521b33ed9 replacereplace a SparseIntArray appends with puts 2018-05-28 22:39:26 +02:00
tibbi 26f33e8c26 add some initial PreviewCameraTwo implementation from the sample code 2018-05-28 21:47:23 +02:00
tibbi 77fb00097c show an AutoFitTextureView on Lollipop+ 2018-05-28 20:15:06 +02:00
tibbi 22d463f0e0 create a PreviewCameraTwo to be used with Camera2 API on Android 5+ 2018-05-28 20:12:02 +02:00
tibbi 0d71a4492b create an interface for some shared Preview functions 2018-05-28 19:30:31 +02:00
tibbi 3bc54c2e5f remove a few more direct variable calls at PreviewCameraOne 2018-05-28 16:15:29 +02:00
tibbi e529bdd15c adding some initial camera states 2018-05-28 16:00:30 +02:00
tibbi a52716a3a5 do not implement OnScanCompletedListener at PreviewCameraOne 2018-05-28 15:14:35 +02:00
tibbi ec294da274 flip the photo quality selector, start at the highest 2018-05-28 12:11:53 +02:00
tibbi bc8459ce00 use a white focus circle at B&W theme 2018-05-28 11:59:57 +02:00
tibbi 18905792c0 simplify button drawable updating 2018-05-28 11:53:20 +02:00
tibbi 86d13eaf54 small cleanup at checking camera availability 2018-05-28 11:49:52 +02:00
tibbi 05dee60cb7 add a helper function for toggling timer visibility in the activity 2018-05-28 11:35:36 +02:00
tibbi b8db893c1c do not store mCurrCameraId in the activity 2018-05-28 11:29:25 +02:00
tibbi bf82752748 update flashlight handling 2018-05-28 10:54:10 +02:00
tibbi 95d0ca1fd0 do not reset the activity at releasing camera 2018-05-28 00:00:47 +02:00
tibbi bad8653d36 minor cleanup here and there 2018-05-27 23:56:07 +02:00
tibbi 2cdae95de8 create a helper function for getting the proper camera impl 2018-05-27 23:35:40 +02:00
tibbi 3e6aab0cb5 rename Preview to PreviewCameraOne 2018-05-27 23:03:57 +02:00
tibbi 7bf69e1d04 change the focus rectangle to a focus circle 2018-05-27 21:47:54 +02:00
tibbi d6ff4c5c64 adding AutoFitTextuewView from the Camera2 sample 2018-05-27 21:33:28 +02:00
tibbi 5fa8f06391 removing a redundant view 2018-05-27 21:29:12 +02:00
tibbi b2e9854b9a create an interface to be reused by camera1 and camera2 2018-05-27 19:48:27 +02:00
tibbi cc4e07d1ff update commons to 4.1.4 2018-05-27 15:50:21 +02:00
Sérgio Marques 745ba224e6
Update strings.xml 2018-05-21 13:45:55 +01:00
solokot 7cf725b0d2
Update strings.xml 2018-05-17 15:57:38 +03:00
tibbi c33cadaf01 moving some strings to Commons 2018-05-16 23:47:16 +02:00
tibbi bbb4447c34 update version to 4.0.0 2018-05-15 21:50:11 +02:00
tibbi 43b399d552 fix #130, make sure the preview is zoomed out at camera init 2018-05-15 21:44:50 +02:00
tibbi e2ae2caf11 split Settings into subsections 2018-05-15 20:48:41 +02:00
tibbi 6b7022f547 adding colored launcher icons 2018-05-15 20:14:31 +02:00
tibbi 5bf1d39036 unify side paddings at the settings screen 2018-05-09 16:32:57 +02:00
solokot a169abd6d2
Add files via upload 2018-04-28 19:33:10 +03:00
tibbi 9538c47ba0 send the captured photo path as an extra at refresh_media intent 2018-04-23 23:04:41 +02:00
Kompiuterių meistras +37060040020 53566b7e5f
Update strings.xml 2018-04-16 00:43:37 +03:00
en2sv 7d7c3f3a64
Update Swedish translation 2018-04-14 20:13:00 +02:00
tibbi b0b68bd243 update version to 3.2.1 2018-04-08 11:17:57 +02:00
tibbi 4df0e1b414 update commons to 3.18.10 2018-04-08 11:15:51 +02:00
tibbi ad1a721f8f catch and show exceptions thrown at rotating saved image 2018-04-08 11:13:31 +02:00
Kompiuterių meistras +37060040020 4b57d5ff0e
Update strings.xml 2018-04-04 01:26:36 +03:00
tibbi d6f9943a4b update version to 3.2.0 2018-04-01 16:14:40 +02:00
tibbi 6fc21c7eb9 tweak window flags a bit 2018-04-01 16:11:22 +02:00
tibbi b55ebb669c allow the app be ran over lockscreen 2018-04-01 16:07:04 +02:00
tibbi f73f8ad1c5 fix a condition check 2018-04-01 12:16:46 +02:00
tibbi 15e24a7f83 use the functions from Commons for saving rotated images 2018-04-01 12:12:46 +02:00
tibbi 1bade23297 rotate images by exif on SD card on Nougat+ 2018-04-01 11:20:26 +02:00
tibbi 750ff3f782 update commons to 3.17.19 2018-03-31 23:42:01 +02:00
tibbi 2f08c2b59e adding a null check at photo saving 2018-03-31 23:33:47 +02:00
tibbi 43ff590e64 make toggle_camera nullable at MainActivity 2018-03-31 23:29:34 +02:00
tibbi dccc85e0a1 catch exceptions thrown at setting camera parameters 2018-03-31 23:11:12 +02:00
tibbi 4aac512a05 removing a weird file 2018-03-27 20:11:32 +02:00
Unknown f7c7128de3 Croatian translation
App fully translated to Croatian.
2018-03-27 19:38:24 +02:00
Kompiuterių meistras +37060040020 644e5d8dbd
Update strings.xml 2018-03-23 23:58:01 +02:00
julianaito 4adf23c402 Fixed and updated French translation 2018-03-13 15:06:56 +01:00
fricyo 52fbc43506
Creat Chinese(TW) Translation 2018-03-06 12:15:22 +08:00
Sérgio Marques 2c63d186a6
Update strings.xml 2018-03-04 22:31:45 +00:00