summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Automatic translation importcm-14.1_prerebaseAbhisek Devkota2017-02-137-1/+85
| | | | Change-Id: I33bb321794077ca90ffe6c35c55b37d7f15409a8
* Automatic translation importAbhisek Devkota2017-02-115-0/+559
| | | | Change-Id: I9c1bae7d77a7ec6f0fbb78bb4f11ef54041b686e
* Snap: Fix filtering of unsupported HFR/HSR modesMichael Bestas2017-02-101-3/+25
| | | | Change-Id: I7721613f10a24cbd36eb0a3c5b0a46a98e828679
* Automatic translation importAbhisek Devkota2017-02-09104-220/+206
| | | | Change-Id: Ic259fd75336aa8233fe06cd412ea6e6e46101d18
* Snap: Fix max brightness and power shutter settingsGabriele M2017-02-091-2/+4
| | | | | | | | | Checking the value of arePreviewControlsVisible() doesn't allow to reliably determine whether we are using the app or not, so do it as we used to: set a local flag as soon as we show/hide the controls and check its value. Change-Id: Iadfa86d49b74bc811006e1b477b60fc487772219
* Snap: VideoModule: Update flash status on preference changeGabriele M2017-02-091-0/+2
| | | | | | | The flash preference was read only during initialization. Do it whenever the preferences change. Change-Id: I32c0d96f6c71dca98953a7bb29dbfa2f59ac4b07
* Snap: Replace noisy debug lineGabriele M2017-02-091-1/+1
| | | | Change-Id: I378fc4d5fc102ec1c23995532114355b1dcdb3d6
* Snap: VideoModule: Restore check on mPreferenceReadGabriele M2017-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following crash when switching from picture mode to video mode for the first time: FATAL EXCEPTION: main Process: org.cyanogenmod.snap, PID: 4243 java.lang.NullPointerException: Attempt to read from field 'int android.media.CamcorderProfile.videoFrameWidth' on a null object reference at com.android.camera.VideoModule.updateCameraParametersInitialize(VideoModule.java:2778) at com.android.camera.VideoModule.setCameraParameters(VideoModule.java:2822) at com.android.camera.VideoModule.startPreview(VideoModule.java:1353) at com.android.camera.VideoModule.onPreviewUIReady(VideoModule.java:3260) at com.android.camera.VideoUI.surfaceCreated(VideoUI.java:956) at android.view.SurfaceView.updateWindow(SurfaceView.java:618) at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:161) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2205) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6343) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874) at android.view.Choreographer.doCallbacks(Choreographer.java:686) at android.view.Choreographer.doFrame(Choreographer.java:621) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6126) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Change-Id: I8f449aaa943636a9b3ce590425e8611def8df590
* Snap: VideoModule: properly update focus settings when switching between camerasFlex19112017-02-081-0/+1
| | | | Change-Id: I4c769bb4f080b8144b2571d218807bf197187a54
* Snap: Fix zoom in video modeGabriele M2017-02-081-1/+1
| | | | | | The zoom parameter was changed but never applied. Change-Id: Ibed445179835e7b6ed146058320ab5c2db0d8179
* Snap: Remove touch AF/AEC optionSteve Kondik2017-02-086-75/+11
| | | | | | | * Drop the use of the touchaf-aec parameter entirely. No camera needs this anymore. Change-Id: I83154a75e5375901dc6c0fc93aef23637cfdf425
* Automatic translation importcm-14.1_20170208Abhisek Devkota2017-02-075-2/+60
| | | | Change-Id: I8d8753cce6b0f3d144754898b23394ad2864d080
* Automatic translation importAbhisek Devkota2017-02-0430-35/+714
| | | | Change-Id: I2c94d99c51aaeb519d406cbe35bbaf00ffeb6d55
* Automatic translation importAbhisek Devkota2017-01-3126-37/+535
| | | | Change-Id: I77d8227674c75cd357eb0f405672e1cf29e25073
* Fix thumbnail sometimes not being shown initially in video mode.Danny Baumann2017-01-301-13/+13
| | | | | | | Happened due to a race condition between surface creation and view initialization. Change-Id: I701eaa16c09a246806f5d148d0ce90f1d132e3f3
* Fix shutter button pressed state tracking issues.Danny Baumann2017-01-302-3/+22
| | | | | | | | | | - Setting pressed state to false on enabling touch caused ripples to be displayed too early - Make sure pressed state is set to true on down event and set to false on up event - Correctly set ripple hotspot Change-Id: I64bbd3be21f19f3027243514239733b57cebb81a
* Snap: store module indexcodeworkx2017-01-291-0/+5
| | | | | | | | | | | | Store the module index so we can use it the next time the Camera starts up. Looks like this code got lost in space during one of the recent merges. Probably somewhere around the black hole in andromeda galaxy. Credits to codeaurora Change-Id: I1be5f643fbeb985fbc4734d03498deeac3ed841b
* Snap: Fix NPE when parameters.getSupportedVideoSizes() is nullMichael Bestas2017-01-281-102/+22
| | | | | | | | * Older devices do not support parameters.getSupportedVideoSizes() * Assume that the device reports valid profiles in media_profiles * Remove dead code Change-Id: Ic3488b6762496bd9498bc6bf8b48b2a2212bad51
* Automatic translation importAbhisek Devkota2017-01-25392-2064/+68261
| | | | Change-Id: Ia305d6bfc88660585c993401c354c6e9402efe87
* Correctly return to film strip after editing a picture.Danny Baumann2017-01-236-17/+24
| | | | Change-Id: Icd4e47474f871d427d10ab2575e0d9622f1b4369
* Snap: CAF strings cleanup second interationMichael W2017-01-153-157/+114
| | | | | | | | * Forgot some on the first run... * Match some with old translations which don't exist in last cm13 version anymore (courtesy Michael Bestas) Change-Id: I3ba6366a46ce0d3392871b1bece23dd2147fcfb7
* Snap: Fix missing untranslatablesMichael W2017-01-132-7/+7
| | | | | | * Found these while translating Change-Id: I36a42e948f94990c360d28a992b7692629e6d951
* Fix camera controls rotation.Danny Baumann2017-01-121-8/+13
| | | | Change-Id: I949b30becc8b69268ff30a0dca57e234fd078204
* Snap: Replace stringsMichael W2017-01-121-55/+55
| | | | | | | * Match old strings: No need to change those, we have translations already * "Ubi Focus" is a name, show the correct one Change-Id: Id94517703f91acb58fa730288b555be81457d6db
* Snap: Fix whitespace issuesMichael W2017-01-111-269/+257
| | | | | | | | * 4 spaces, not mixed with 5 * No newlines within comments or strings (those are requested during translation as well!) Change-Id: I5cc241ebec4a29ca72aa4945e6dc68b505d30bac
* Snap: Fix untranslatable stringsMichael W2017-01-111-272/+273
| | | | | | | * Just writing a comment is not enough, set the attribute * Match the tags with CM13 strings as well Change-Id: Id40abad0c9d8dc321e0a43b0af2a1f0ab6f84abc
* Snap: Remove storage menu if no external storage availablemaxwen2017-01-041-2/+9
| | | | | Change-Id: I9807c7f9303f17eb971ff1a82fbd35dfbdbfa529 Signed-off-by: Zdrowy Gosciu <ZdrowyGosciu+GITHUB@gmail.com>
* Add PREVENT_POWER_KEY to fix Crash when using 'Power Shutter'Afshin Arani2017-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: org.cyanogenmod.snap, PID: 5268 E AndroidRuntime: java.lang.RuntimeException: Unable to pause activity {org.cyanogenmod.snap/com.android.camera.CameraActivity}: java.lang.SecurityException: No permission to prevent power key: Neither user 10028 nor current process has android.permission.PREVENT_POWER_KEY. E AndroidRuntime: at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:3751) E AndroidRuntime: at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3717) E AndroidRuntime: at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3691) E AndroidRuntime: at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3665) E AndroidRuntime: at android.app.ActivityThread.-wrap16(ActivityThread.java) E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1498) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6126) E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) E AndroidRuntime: Caused by: java.lang.SecurityException: No permission to prevent power key: Neither user 10028 nor current process has android.permission.PREVENT_POWER_KEY. Change-Id: I94796493b31474ce3552f0ccf561723159b584e6
* Snap: make openLegacy an optioncm-14.1-wipcodeworkx2016-12-233-11/+45
| | | | | | | Using openLegacy on QCamera3 forces it to use QCamera2 and fall back to api v1 which is not what we want on v2 devices. Change-Id: Ic392a4ae9403ebae36940ddf0727237d9cb9e8f0
* Snap: update caf iconsJoey Rizzoli2016-12-2386-156/+416
| | | | | Change-Id: I1adaf709253637bde037b5aea1f856fc5b9029c7 Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
* Snap: prevent NPE when checking if controls are visibleJoey Rizzoli2016-12-231-0/+3
| | | | | Change-Id: Id054ccc9445722bcb08953fd40e43a82bdd13ae2 Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
* Always set JPEG quality.Danny Baumann2016-12-231-21/+10
| | | | | | | Don't skip it (and the JPEG picture size estimation) under arbitrary conditions. Change-Id: Iee89e56ffffd3f029bc042a07cf4df18fd8fda57
* Initialize focus manager in onResume().Danny Baumann2016-12-232-0/+2
| | | | | | | | | | | Since commit 87b4a40d588a7ae8a61cb353c4cff8df37f7b483 moved camera initialization (and focus manager initialization with it) to a background thread, the focus manager initialization now races against the onPreviewRectChanged() call triggered by SurfaceView initialization in the main thread, potentially leaving the focus manager in an uninitialized state that prevented taking pictures. Change-Id: I8cf650d6a67768acd131b3cddad175ed198e0838
* Modernize look of review controls.Danny Baumann2016-12-2319-80/+113
| | | | Change-Id: I79f74502364a523a7c9c9f8ae3c63c3fcfebac3d
* Clean up module switcher.Danny Baumann2016-12-234-58/+47
| | | | | | | | - Get rid of Holo highlight color - Don't hardcode pixel sizes - Simplify code Change-Id: I3695b04e99308c266537eb9b837d0b65793a33f7
* Stop data loader on activity destroy.Danny Baumann2016-12-234-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes this crash: 11-29 13:02:30.837 18338 18338 E AndroidRuntime: java.lang.IllegalArgumentException: You cannot start a load for a destroyed activity 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.bumptech.glide.manager.RequestManagerRetriever.assertNotDestroyed(RequestManagerRetriever.java:136) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java:127) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.bumptech.glide.manager.RequestManagerRetriever.get(RequestManagerRetriever.java:88) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.bumptech.glide.Glide.with(Glide.java:587) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.LocalMediaData$PhotoData.loadUri(LocalMediaData.java:535) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.LocalMediaData$PhotoData.loadImage(LocalMediaData.java:507) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.LocalMediaData$PhotoData.fillImageView(LocalMediaData.java:485) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.LocalMediaData.getView(LocalMediaData.java:232) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.CameraDataAdapter.getView(CameraDataAdapter.java:101) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.FixedFirstDataAdapter.getView(FixedFirstDataAdapter.java:117) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.ui.FilmStripView.buildItemFromData(FilmStripView.java:928) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.ui.FilmStripView.update(FilmStripView.java:2072) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.ui.FilmStripView.-wrap12(FilmStripView.java) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.ui.FilmStripView$4.onDataUpdated(FilmStripView.java:1803) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.FixedFirstDataAdapter.onDataLoaded(FixedFirstDataAdapter.java:152) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.CameraDataAdapter.replaceData(CameraDataAdapter.java:269) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.CameraDataAdapter.-wrap1(CameraDataAdapter.java) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.CameraDataAdapter$QueryTask.onPostExecute(CameraDataAdapter.java:359) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.camera.data.CameraDataAdapter$QueryTask.onPostExecute(CameraDataAdapter.java:358) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:660) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at android.os.AsyncTask.-wrap1(AsyncTask.java) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:677) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6095) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 11-29 13:02:30.837 18338 18338 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Change-Id: I43c6eb85651e5ee69647114a5ec819ed98c61720
* Improve RTL layout behaviour.Danny Baumann2016-12-235-309/+163
| | | | | | | | - Swipe in menu from the right in RTL - Make it possible to select scene/filter items in RTL - Remove/clean up some nonsense code Change-Id: I884a06f5cc6e72a1d2ee19dbdf32ce511c8466ec
* Use transparent navigation bar.Danny Baumann2016-12-2317-254/+336
| | | | | | | Ensures a 16:9 preview isn't scaled on a 16:9 screen just due to the navigation bar being shown. Change-Id: I7ca7778b0405d3e9ac7ae1db3e7a56cacd703e3b
* Use material versions of share/delete/edit icons.Danny Baumann2016-12-2313-23/+37
| | | | Change-Id: I5cbcd574802170747973c8d685cdfdebf61d5a4f
* Fix some photo UI layout issues.Danny Baumann2016-12-233-20/+25
| | | | Change-Id: I04a68fe2e379db4a228d19cbe6444a10a8024ce0
* Snap: Fix blatant UI string issuesZhao Wei Liew2016-12-011-6/+6
| | | | Change-Id: Iecae12836966dc32e4906c0b6bf9a549ab726342
* snap: Panorama fixesSteve Kondik2016-11-2212-28/+37
| | | | | | | | * Fix animations and transitions * Disable warped preview overlay, this looks terrible and needs rewritten. Change-Id: I9474219c57fc204dd16797aa8921296e61cc9d37
* snap: Fix bottom bar layoutSteve Kondik2016-11-211-28/+36
| | | | | | | | * Fix all the widths so we resize properly when there are two shutter buttons, and so that we don't start the app with the controls off center. Change-Id: I51e0a5c9bbb6a55625d385d1e52b01a88338e6cf
* Snap: Remove obsolete xxhdpi scene mode drawablesZhao Wei Liew2016-11-2112-0/+0
| | | | | | | | These old, holo-looking drawables have been replaced by newer material-looking vector drawables since change I8d6c0d71d1b94e6eb2f43ab962fb92de0e6c7093. Change-Id: I69232e4fcf89cfce21648724974903e4ebe56490
* Fix mismatched scene mode arrays.Danny Baumann2016-11-211-8/+0
| | | | Change-Id: Ib0a63f8696489efa02ecc1f89f3b41d701ad6db1
* Snap: Make developer menu more accessibleMichael Bestas2016-11-213-24/+61
| | | | | | | | | | | | | | * Not all devices have red eye reduction, which made it impossible to enable advanced options. Move the toggle to max brightness option which is present in all devices. * Allow enabling advanced options through camcorder settings. * Move hardcoded strings to cm_strings for translations. * Close menus when developer mode is toggled so we can see the extra options when the menu is reopened. * Decrease taps to 7, matching Settings tap-to-enable. * Properly reset tap counter. Change-Id: Iac39b9309388b92bf75a49a6091b483b13bd9154
* Revert "snap: Provide a way to remove Snap from the build"Zhao Wei Liew2016-11-211-2/+0
| | | | | | | | | By removing the 'Snap' entry in the device makefiles, Camera2 can be built instead of Snap. This reverts commit e4351681fcb22d2b08562bf14ebeb32573e41d7f. Change-Id: I07c5e18652a016a640df33a224ccaae31d5cdccb
* snap: Fix reset of camera controlsSteve Kondik2016-11-202-1/+12
| | | | | | | | | * Need to post a runnable so everything currently in the queue finishes first. * Also force reset when hiding the preview cover to ensure no stray scroll events throw us off. Change-Id: Id1419e91f7624b4276c566228fe77d1a774ecc2b
* CameraNext: Update focus behavior for panoramasJim Wilson2016-11-201-11/+26
| | | | | | | | | | Panorama was using Infinity for the focus mode all the time for panoramas. Change to use continuous-picture in viewfinder before the actual mosaic is started then change to fixed to lock in. This allows indoor panoramas to not suck. Change-Id: Ida01ca1ded1e1058d76da851cd20e5b7072e15be (cherry picked from commit 33ece020c28796f004f28843fda28092e315c9dc)
* Make panorama able to go 270 degrees in landscapeMartin Brabham2016-11-203-6/+10
| | | | | | Change-Id: Icfab44c674bcc59c1d369af64985956ccaf63ccc issue-id: SAMBAR-869 (cherry picked from commit e0ca697b97ef2d872f682d2b357d7233762cfafd)