summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui
Commit message (Collapse)AuthorAgeFilesLines
* Fix camera_control distorted in small resolution.akahuang2012-06-151-1/+7
| | | | | | | Use minimum height of camera_control to fix it. bug:6228273 Change-Id: I7c623efe06e043664d696f753f08877cd34450a1
* Fix NPE when only front cameras are available.Angus Kong2012-06-131-12/+4
| | | | | bug:6643208 Change-Id: Ie4eef4a671091cd9557d1c51ab5c3919b6b30652
* Fix the share popup. DO NOT MERGEAngus Kong2012-02-181-33/+1
| | | | | | | | | | Fix the share popup to comply with the new design: 1. Black background. 2. Image is centered. 3. Share popup won't rotate automatically. bug:6031042 Change-Id: I86b15a19bc8f7598d444cd9032960ea02e251668
* Fix crash after restoring defaults.Wu-cheng Li2011-12-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | After restoring defaults in camcorder mode, the indicator control calls onSharedPreferenceChanged if record location is on. onSharedPreferenceChanged is also called in the end of restorePreferences. With two onSharedPreferenceChanged calls in a row, the first call notices effects have been disabled, and begins the effect pipeline teardown in the background thread. Normally, this would conclude in a few hundred milliseconds, and would then restart regular preview. However, with the second call to onSharedPreferenceChanged coming in right after the first, the method no longer sees an effect transition in progress (since current and new effect are equal to none now), and thus just ends up restarting preview. That attempt at restart runs into the crash because the main SurfaceView has not yet been released by the background effects thread. To fix this, InLineSettingSwitch should not invoke the listener when updating UI. bug:5679133 Change-Id: I06aca382105455585b633dc63f014a8f71ccadbe
* Fix the ArrayIndexOutOfBound issue.Chung-yih Wang2011-11-161-13/+17
| | | | | | | | | | | bug:5619774 It was caused by the error of the radian computation for rotation of the indicator wheel. Originally we assume the angle of the first and the last indicator in the second-level settings should be the same as predefined angles. In fact, there was some computational error during rotation. Change-Id: I508f42c5224170ac721562e20be8ed638485e023
* Fix NPE if the device has only one camera.Wu-cheng Li2011-11-161-1/+3
| | | | | bug:5620872 Change-Id: I4ee2aa85e73c53d6a72f0839ed3bf31bc14c586e
* Merge "Fix several UI bugs." into ics-mr1Wei Huang2011-11-141-2/+2
|\
| * Fix several UI bugs.Chung-yih Wang2011-11-141-2/+2
| | | | | | | | | | | | | | | | | | | | bug:5575970 1. The cancel button of the background replacer message should be on the bottom. 2. The location of recording timer was too low in the landscape mode. 3. Fix the animation of the setting popup. Change-Id: Ia2345e72efc0118cd0172af4bd6243815c602493
* | Add a rotatable toast class.Chung-yih Wang2011-11-141-0/+58
|/ | | | | | | | | | bug:5575970 In order to show the toast in a landscape orientation with portrait layout. The rotatable toast helper class is implementated and is also applied for first-hint toast messages. Change-Id: I942e87df1c1a4509d01cd41e2ecbdc2e2dfec049
* Merge "Fix 5603781: The pressed state of close icon does not disappear." ↵Wei Huang2011-11-111-13/+21
|\ | | | | | | into ics-mr1
| * Fix 5603781: The pressed state of close icon does not disappear.Chih-Chung Chang2011-11-111-13/+21
| | | | | | | | Change-Id: Ibd52cb5febf3a139d5007b6b2dd6adcb09934f99
* | Merge "Fix sometimes share icons disappear." into ics-mr1Wei Huang2011-11-112-11/+17
|\ \
| * | Fix sometimes share icons disappear.Wu-cheng Li2011-11-112-11/+17
| |/ | | | | | | | | bug:5580133 Change-Id: I4f76ac8d03a54cfd7105e70ca4f1d643e01d3293
* | Adjust share UI to full-width.Angus Kong2011-11-112-35/+94
|/ | | | | bug:5521011 Change-Id: I66aab65763224cbb66aa721d49d3e4ea916d8a58
* New ZoomControl UI for tablet.Chung-yih Wang2011-11-095-125/+113
| | | | | bug:5349676 Change-Id: Ie1f4202d7f1d75978308ece4fbf486635cceead3
* Change highlight pattern in indicatorbar.Chih-yu Huang2011-11-084-26/+19
| | | | | | | | | | Use the blue press state for all the icons in the setting bar, fill the whole bar width with a square instead of blue arc. Also make the share icon touch area larger. bug:5521011 Change-Id: I2db26c41758d230e8455696346a90a33b7e3efb6
* Merge "Change effect settings popup styles." into ics-mr1Wei Huang2011-11-071-0/+2
|\
| * Change effect settings popup styles.Angus Kong2011-11-041-0/+2
| | | | | | | | | | bug:5521011 Change-Id: Ia01bcbd8b1aa916406048b6890ab3439fe2f063a
* | Merge "Fix the unresposible close button." into ics-mr1Wei Huang2011-11-071-3/+9
|\ \
| * | Fix the unresposible close button.Chung-yih Wang2011-11-071-3/+9
| | | | | | | | | | | | | | | bug:5575807 Change-Id: Ief2f51b363a5300989ae0fe7b047436b923a0386
* | | Make 40% opacity for disabled indicators.Angus Kong2011-11-073-10/+9
|/ / | | | | | | | | bug:5521011 Change-Id: I150f754b9190e7034e75a3ab06cb0f5e8312cd31
* | Merge "Fix 'back to the first-level when recording'." into ics-mr1Chung-yih Wang2011-11-031-4/+3
|\ \ | |/ |/|
| * Fix 'back to the first-level when recording'.Chung-yih Wang2011-11-031-4/+3
| | | | | | | | | | | | | | | | | | | | | | bug:5395575 Originally we have the fix for back to the first-level when recording, but it has another side-effect after merging the fix of icons overlapped issue. This change will fix the issue and make sure the available indicator is zoom control only during recording. Change-Id: Ic674c0a2c92a88c2cd2a3586a703f27784415582
* | Fix 5521540: UI Tweaks.Chih-Chung Chang2011-11-031-8/+27
|/ | | | | | | | | | | | - draw fan-shaped semi-transparent area on the indicator wheel. - change selected indicator color - remove video mode black border - set activity background to black - update assets - don't gray out unselected modes in mode picker (tablet) - set ok/cancel icons to 32dp, font to 12sp bold Change-Id: Iedc43dca29d1943965caf2d36cce176d8e509547
* Merge "Back to the first-level when recording on Tablet." into ics-mr1Chung-yih Wang2011-11-022-4/+14
|\
| * Back to the first-level when recording on Tablet.Chung-yih Wang2011-11-022-4/+14
| | | | | | | | | | bug:5395575 Change-Id: I1493466068ce76dce957cd717a602939c66f138c
* | Fix the disabled icons overlapped issue.Chung-yih Wang2011-11-021-1/+2
|/ | | | | bug:5515221 Change-Id: I9fe40f6492afdd8906ea2ad31839ec34f22a28b7
* Change the default orientation to portrait.Chung-yih Wang2011-11-018-80/+168
| | | | | | | | | | | | bug:5446617 Since the orientation is mainly portrait on phones, the default orientation of an application will decide if the window animation will be played before it starts. In order to reduce the launch time of Camera apps, this change is to skip the window animations by changing the default orientation to portrait. Change-Id: I6682ab408d7e8d1f0580f3c1600b6c9c3d6a7f6e
* Fix 5520606: Should be able to deselect the effect selected to clear effects.Chih-Chung Chang2011-10-281-3/+11
| | | | Change-Id: I41ea0d23b4ec83f5205fbe1324fb997a1d0971f3
* Make PreviewFrameLayout and ControlPanelLayout work in potrait mode.Wu-cheng Li2011-10-271-15/+37
| | | | | | | | + Move tablet resource to sw600dp and sw800dp bug:5446617 Change-Id: Iaf2a442e621ed071d7639972a529dd263e3ce628
* am 048edf2e: Fix focus area in front camera.Chih-yu Huang2011-10-211-9/+3
|\ | | | | | | | | * commit '048edf2ef22607b85bc4b062e2af71804f5b3530': Fix focus area in front camera.
| * Fix focus area in front camera.Chih-yu Huang2011-10-211-9/+3
| | | | | | | | | | | | | | | | | | | | Front camera preview is mirrored. Change to use matrix to calculate the focus area. So the focus area will be correct in all orientations in front or back camera. bug:5446617 bug:5461028 Change-Id: I2d39a22cd9f034c5028843ca3d4abe0f9962f18a
* | am f9f24d4c: bugfix 5479807 Video preview displaced to right when ↵Mark Wagner2011-10-191-35/+8
|\ \ | |/ | | | | | | | | | | orientation changed * commit 'f9f24d4c578a01cb09a7e5c4c66b75595d3669ee': bugfix 5479807 Video preview displaced to right when orientation changed
| * bugfix 5479807 Video preview displaced to right when orientation changedMark Wagner2011-10-191-35/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Three changes: (1) center the play button over the thumbnail (2) leverage the existing mechanism for scaling the image for video thumbnails which want to be 4/3 (3) use center_crop for video previews so that they properly align in the ui. Not doing so means we were getting black bars at the top and bottom which was wrong. Change-Id: Ifc416455d03136a393239487db07493dc27f151e
* | am 66188959: Fix getting an empty thumbnail in reviewing panorama.Wei-Ta Chen2011-10-181-3/+2
|\ \ | |/ | | | | | | * commit '66188959498860c8b43ab7b9119c7b5c890c83dc': Fix getting an empty thumbnail in reviewing panorama.
| * Fix getting an empty thumbnail in reviewing panorama.Wei-Ta Chen2011-10-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | The sample size for generating a thumbnail should be calculated in a way that also considers the case of a portrait image, i.e., height > width. The SharePopup should also puts the thumbnail of a portrait panorama in the center of the thumbnail view. Bug: 5411488 Change-Id: I5e86a91829de77f4694c039bd871e6831f3906cb
* | am b3548b65: Merge "Fix 5454202: make the UI work even if there is no goofy ↵Chih-Chung Chang2011-10-181-43/+71
|\ \ | |/ | | | | | | | | | | face effect." into ics-mr0 * commit 'b3548b653b277eabe2214396f2e9dbfe19eb6082': Fix 5454202: make the UI work even if there is no goofy face effect.
| * Fix 5454202: make the UI work even if there is no goofy face effect.Chih-Chung Chang2011-10-181-43/+71
| | | | | | | | Change-Id: I6e498dac31538a1af57e2c79d5df3519f2ab57da
* | Rename function "setDegree" to "setOrientation".Chih-yu Huang2011-10-1411-43/+33
|/ | | | | bug:5244256 Change-Id: I6f5c96a5e1fefab5fa09a12fd3a0cf169bcbc6f5
* [DO NOT MERGE] Add orientation switching and cancel button to bg training panel.Evan Millar2011-10-111-2/+2
| | | | | | | | -I also changed some calls to GridView.ClearChoices() to explicit setItemChecked(..., false) calls because of bug 5439410. bug:5225962 Change-Id: Ie764a209bc9647db8522efd38609c8ed383b5d0b
* Remove redundant operations for zoom control.Chung-yih Wang2011-10-112-25/+27
| | | | | bug:5441257 Change-Id: I660a8fb4edc81134a611597f46a95e7e23dabbcd
* Add content descirptions for accessibility.Chung-yih Wang2011-10-118-7/+65
| | | | | | bug:5230109 Change-Id: I055fccea0d30c54dc8520bf1d0424b963d2ba8a5
* bugfix 5290450 Share UI should match redlinesMark Wagner2011-10-101-0/+7
| | | | | | | | Add the "go to gallery" button at the top of the list of share choices. Made it a separate button rather than part of the list since it gets it's own separator. Change-Id: I62f866f7aedd3e84916eccf037f3fa37a8528196
* Merge "bugfix 5290450 Share UI should match redlines"Mark Wagner2011-10-071-23/+84
|\
| * bugfix 5290450 Share UI should match redlinesMark Wagner2011-10-071-23/+84
| | | | | | | | | | | | | | Incremental work towards matching the redline. This will probably require a review pass from UX to catch any missed items. Change-Id: I0496aa0fc1941f8ffa06050ae8fbed3fe7246878
* | Let review icons rotatable.Chih-yu Huang2011-10-073-2/+31
|/ | | | | bug:5244256 Change-Id: Ieed6119f22598a34eeb1672d07f55a876dced791
* Rearrange the second level indicator set.Chung-yih Wang2011-10-051-1/+1
| | | | | | | | | bug:5360827 +change the icon spacing to 16dp +Store the geodata in the video. Change-Id: I133871066b6b9a8918f861f0510e3996d5b0f839
* Fix the UI issue during video recording.Chung-yih Wang2011-10-033-8/+25
| | | | | | | | | | | bug:5395575 Start recording when 2nd level settings are open, it should return to 1st level controls during recording with zoom control only displayed When recording is stopped continue to display 1st level controls - settings and switch camera icons reappear. Change-Id: I502f2486c764dce8baa35cd45e00cd324930c894
* Merge "Remove mContext varaibles in Views."Chung-yih Wang2011-09-306-15/+9
|\
| * Remove mContext varaibles in Views.Chung-yih Wang2011-09-306-15/+9
| | | | | | | | | | | | | | Since mContext is already a protected member in View, we should reuse it instead. Change-Id: I7bad94a8e7aabc6c4141be8950a867ff70e63731