Commit Graph

849 Commits

Author SHA1 Message Date
en2sv 7112a40aa1
Update Swedish translation 2018-07-08 20:14:26 +02:00
tibbi 536fe8ff7c rescan captured video path before updating lastMediaPreview 2018-07-06 21:11:06 +02:00
tibbi ef7505ce81 update commons to 4.3.31 2018-07-06 21:04:00 +02:00
tibbi 42e8fd3183 update commons to 4.3.30 2018-07-05 23:39:55 +02:00
tibbi 9cb353d0b5 adding some crashfixes, show exceptions thrown at starting recording 2018-07-05 18:57:10 +02:00
tibbi f2f330ffd3 update commons to 4.3.29 2018-07-05 18:46:17 +02:00
ScratchBuild 376af161b0 Update Japanese translation 2018-06-26 16:47:59 +09:00
tibbi 2fa5965e7b update version to 4.1.2 2018-06-18 23:19:00 +02:00
tibbi b351729646 remove the error toast at Create Preview 2018-06-18 23:18:16 +02:00
tibbi 2c26981fd0 flip the icons used at toggle front/rear camera 2018-06-18 23:16:25 +02:00
tibbi 7e42da897a split the video and image capture intent checks 2018-06-18 23:12:49 +02:00
tibbi 39a235141e update commons to 4.2.6 2018-06-18 22:49:23 +02:00
tibbi c6dfeb97b7 show some exception messages publicly to speed up the glitch fixes 2018-06-18 22:43:42 +02:00
tibbi 335529ccbb catch and show exceptions thrown at starting recording 2018-06-18 21:22:19 +02:00
tibbi 7afa969505 fix #172, set SCALER_CROP_REGION at image capturing only if the user zoomed 2018-06-18 21:04:01 +02:00
tibbi 29fc0add5c update commons to 4.2.5 2018-06-18 21:03:23 +02:00
gregory678 edacc556b9
PL translation update [2018.06.18] 2018-06-18 20:52:08 +02:00
tibbi ff33c4f30d notify the activity at stoping the video recording, fixed third party intents 2018-06-14 14:14:57 +02:00
tibbi 16fdbf8d5a fix handling of third party video intent 2018-06-14 13:53:51 +02:00
tibbi 854a865071 fix third party intent image capturing 2018-06-14 13:04:46 +02:00
tibbi 22ed7a2678 update kotlin to 1.2.50 2018-06-14 11:52:30 +02:00
tibbi d4d497612a update version to 4.1.1 2018-06-12 10:22:22 +02:00
tibbi 049245e43d make capture session nullable 2018-06-12 10:18:25 +02:00
tibbi b1a6fc7411 update version to 4.1.0 2018-06-11 18:48:35 +02:00
tibbi 1ec2c68961 recreate the preview session after capturing a photo without focus 2018-06-11 18:35:43 +02:00
tibbi 9696db4ef4 set preview intent at control capture intent 2018-06-11 17:52:33 +02:00
tibbi f246a23440 remove the standalone cancel autofocus function 2018-06-11 16:58:39 +02:00
tibbi d21124e3bc flip autofocus canceling and stopRepeating 2018-06-11 15:07:03 +02:00
tibbi 45177dd7d9 move the autofocus cancelling code in an own function 2018-06-11 14:30:35 +02:00
tibbi 8ae53e4f2f do not rotate the preview at front camera, always use sensor orientation 2018-06-11 14:10:59 +02:00
tibbi c0d0a06dfe try disabling Focus before capture by default 2018-06-11 13:56:25 +02:00
tibbi 8b7185d38c let Camera2 take care of exif fields, just copy it over 2018-06-11 12:50:07 +02:00
tibbi d8f68fe643 fix #98, properly set some date/time related exif values when appropriate 2018-06-11 12:32:52 +02:00
tibbi 368a9c109d hide the last photo preview too at third party intents 2018-06-11 11:49:19 +02:00
tibbi 1f55c1345a make sure the image is rotated as appropriate at third party intents 2018-06-11 11:26:50 +02:00
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