summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/photoeditor/EffectsBar.java
Commit message (Collapse)AuthorAgeFilesLines
* resolved conflicts for merge of cf6f99e7 to jb-dev-plus-aospJean-Baptiste Queru2012-06-141-2/+7
|\ | | | | | | Change-Id: I4d8d85960b5f0289ee442278db39b8f8c445d73e
| * Gallery2: Check privative effectsJorge Ruesga2012-06-141-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Gallery2 has 2 effects (FaceTan and Facelift) from the privative gapps. If gapps is not present, Gallery2 gets into a FC when click on this effects. This patch checks if the permission "com.google.android.media.effects" exists and hide this 2 effects if permission not exists Patch 2: Use EffectFactory.isEffectSupported to detect if filters exists Patch 3: Make isPresent method from effect classes a static method Patch 4: Change actions classes for static calling to effects classes Change-Id: I8f6b59e57e504114835ab3283f65a72b4f6774a8
* | Simplify PhotoEditor code.Yuli Huang2012-03-131-2/+3
| | | | | | | | | | | | | | 1. Encapsulate spinner usages inside Toolbar. 2. Remove unnecessary static variable usages. Change-Id: Iaec614c5322a50c1e2c0cfa9cec1971b85e32f8a
* | Fix b/5885342: Multiple PhotoEditor activities cause exceptions.Yuli Huang2012-03-071-1/+1
| | | | | | | | | | | | Avoid using a static variable to keep tracking views across activities. Change-Id: Ia53444502d476d37b64344e5aea5f58a06ee3b03
* | Fix effect-label layout and a TODO.Yuli Huang2011-12-051-16/+1
| | | | | | | | | | | | | | | | 1. Seekbar was wrongly placed below effect label because of the added order. 2. Fix a TODO by refactoring EffectToolFactory to EffectToolKit. Change-Id: I8d37c2c2b6d15f2af65d4e6b27116afe01df63c9
* | Simplify EffectAction.Yuli Huang2011-12-031-13/+14
| | | | | | | | | | | | | | 1. Make the whole effect item clickable instead of just the icon. 2. Rename interfaces/methods to improve readability. Change-Id: I647a13dae88b4527b7baba85bb83b9bd15bbe997
* | Refactor to remove obsolete design and improve code consistency.Yuli Huang2011-12-021-5/+1
|/ | | | | | | | | | | | | 1. Remove isValid()/validate() in Filter; EffectAction would push filters into the stack when being notified by notifyChanged(). 2. Make RedEyeAction consistent with DoodleAction by ignoring out-of-bounds operations. 3. Improve consistency by encapsulate effect-tool creation/removal in one class (EffectToolFactory). 4. Minimize variable visibility in EffectAction subclasses. 5. Fix unfinished doodle lost when exiting Doodle effect by multi-touch. Change-Id: I8d3b127c5fe8777eb45b7c5ae680f6a30a99635a
* Fix b/5517002 by dismissing running progress dialog in onPause().Yuli Huang2011-11-151-3/+2
| | | | Change-Id: I524f876e53776c38bc850120a2d7b7e6381ca33a
* Fix b/5518211 by disabling effects when photo cannot be loaded.Yuli Huang2011-11-101-2/+0
| | | | Change-Id: I9e5ae9cfaf9bee52cd63a0e77a3b083e47b59335
* Fix b/5403449.Yuli Huang2011-10-181-43/+33
| | | | | | | | | | 1. Extract code that recreates/restores ActionBar as RestorableView, and make both ActionBar and EffectsMenu extend RestorableView. 2. Fix effects-menu buttons too close to each other. 3. Remove effects-menu buttons' highlight animations to look more responsive. Change-Id: I68e5bdcde702e611ccced5e169852c0e58a949fc
* Fix b/4643148: Make PhotoEditor integrated into Gallery.Yuli Huang2011-09-131-0/+186
1. Move PhotoEditor code/resources into Gallery for single apk. 2. Change PhotoEditor package to com.android.gallery3d.photoeditor. 3. Rename PhotoEditor resources to avoid mess up Gallery resources. 4. Move Doodle effect from fix-effects to color-effects. 5. Update PhotoEditor bottom action-bar background. Change-Id: I1a2f7d27d89a14fe6a0435575b993ed8b75e6bf4