summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/photoeditor
diff options
context:
space:
mode:
authorYuli Huang <yuli@google.com>2011-10-06 18:11:50 +0800
committerYuli Huang <yuli@google.com>2011-10-06 18:11:50 +0800
commitcc9bda9e1d83bc31c5432fb5b791f0e9d6dc0eeb (patch)
treebf2b6861a79cd606e871beaa307b341d7e27fc98 /src/com/android/gallery3d/photoeditor
parent55a31faaa2a8fb5ee1a3c4c2a373adeb6a92c063 (diff)
downloadandroid_packages_apps_Snap-cc9bda9e1d83bc31c5432fb5b791f0e9d6dc0eeb.tar.gz
android_packages_apps_Snap-cc9bda9e1d83bc31c5432fb5b791f0e9d6dc0eeb.tar.bz2
android_packages_apps_Snap-cc9bda9e1d83bc31c5432fb5b791f0e9d6dc0eeb.zip
Replace slider assets and fix save-share-button height.
1. Use the same slider asset for both fill-light and highlights. 2. Update slider assets and dimensions. 3. Fix save-share-button height didn't fill action-bar. Change-Id: I6b3a735c8f745084b89b1d6a035c7ed9bd4ff287
Diffstat (limited to 'src/com/android/gallery3d/photoeditor')
-rw-r--r--src/com/android/gallery3d/photoeditor/actions/EffectToolFactory.java9
-rw-r--r--src/com/android/gallery3d/photoeditor/actions/FillLightAction.java2
-rw-r--r--src/com/android/gallery3d/photoeditor/actions/HighlightAction.java2
3 files changed, 5 insertions, 8 deletions
diff --git a/src/com/android/gallery3d/photoeditor/actions/EffectToolFactory.java b/src/com/android/gallery3d/photoeditor/actions/EffectToolFactory.java
index 4bc49c5fe..2c697351d 100644
--- a/src/com/android/gallery3d/photoeditor/actions/EffectToolFactory.java
+++ b/src/com/android/gallery3d/photoeditor/actions/EffectToolFactory.java
@@ -29,7 +29,7 @@ import com.android.gallery3d.photoeditor.PhotoView;
public class EffectToolFactory {
public enum ScalePickerType {
- FILLLIGHT, HIGHLIGHT, SHADOW, COLOR, GENERIC
+ LIGHT, SHADOW, COLOR, GENERIC
}
private final ViewGroup effectToolPanel;
@@ -59,11 +59,8 @@ public class EffectToolFactory {
private int getScalePickerBackground(ScalePickerType type) {
switch (type) {
- case FILLLIGHT:
- return R.drawable.photoeditor_scale_seekbar_filllight;
-
- case HIGHLIGHT:
- return R.drawable.photoeditor_scale_seekbar_highlight;
+ case LIGHT:
+ return R.drawable.photoeditor_scale_seekbar_light;
case SHADOW:
return R.drawable.photoeditor_scale_seekbar_shadow;
diff --git a/src/com/android/gallery3d/photoeditor/actions/FillLightAction.java b/src/com/android/gallery3d/photoeditor/actions/FillLightAction.java
index e5a743c00..962486bbf 100644
--- a/src/com/android/gallery3d/photoeditor/actions/FillLightAction.java
+++ b/src/com/android/gallery3d/photoeditor/actions/FillLightAction.java
@@ -38,7 +38,7 @@ public class FillLightAction extends EffectAction {
public void doBegin() {
final FillLightFilter filter = new FillLightFilter();
- scalePicker = factory.createScalePicker(EffectToolFactory.ScalePickerType.FILLLIGHT);
+ scalePicker = factory.createScalePicker(EffectToolFactory.ScalePickerType.LIGHT);
scalePicker.setOnScaleChangeListener(new ScaleSeekBar.OnScaleChangeListener() {
@Override
diff --git a/src/com/android/gallery3d/photoeditor/actions/HighlightAction.java b/src/com/android/gallery3d/photoeditor/actions/HighlightAction.java
index 06feedcb9..cd8f4b278 100644
--- a/src/com/android/gallery3d/photoeditor/actions/HighlightAction.java
+++ b/src/com/android/gallery3d/photoeditor/actions/HighlightAction.java
@@ -38,7 +38,7 @@ public class HighlightAction extends EffectAction {
public void doBegin() {
final HighlightFilter filter = new HighlightFilter();
- scalePicker = factory.createScalePicker(EffectToolFactory.ScalePickerType.HIGHLIGHT);
+ scalePicker = factory.createScalePicker(EffectToolFactory.ScalePickerType.LIGHT);
scalePicker.setOnScaleChangeListener(new ScaleSeekBar.OnScaleChangeListener() {
@Override