summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwqi <wqi@codeaurora.org>2016-04-01 10:25:44 +0800
committerSteve Kondik <steve@cyngn.com>2016-09-26 04:54:48 -0700
commit8fc37fd0db20eb24c06b384993d77bdabc5447fe (patch)
treedacc935870bd1e9d5b14b0b562f21119e37f28ed
parent3cb9c1669cc6395ae72f1e9dbee1c1e518b5aec7 (diff)
downloadandroid_packages_apps_Gallery2-8fc37fd0db20eb24c06b384993d77bdabc5447fe.tar.gz
android_packages_apps_Gallery2-8fc37fd0db20eb24c06b384993d77bdabc5447fe.tar.bz2
android_packages_apps_Gallery2-8fc37fd0db20eb24c06b384993d77bdabc5447fe.zip
Gallery2: Remove some functions of crop model in editor interface.
Remove some functions of crop only keep crop, straight, rotate in editor interface according to UX specification document. Change-Id: Ice9426f6ccaafe93a3a00bda7c0cd66f215a9209 CRs-Fixed: 988082 997293
-rw-r--r--src/com/android/gallery3d/filtershow/FilterShowActivity.java11
-rw-r--r--src/com/android/gallery3d/filtershow/filters/BaseFiltersManager.java10
2 files changed, 3 insertions, 18 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index fe383cef7..cf1893c5f 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -499,19 +499,8 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
mCategoryGeometryAdapter.clear();
}
mCategoryGeometryAdapter = new CategoryAdapter(this);
- boolean found = false;
for (FilterRepresentation representation : filtersRepresentations) {
mCategoryGeometryAdapter.add(new Action(this, representation));
- if (representation instanceof FilterDrawRepresentation) {
- found = true;
- }
- }
- if (!found) {
- FilterRepresentation representation =
- new FilterDrawRepresentation(getString(R.string.imageDraw));
- Action action = new Action(this, representation);
- action.setIsDoubleAction(true);
- mCategoryGeometryAdapter.add(action);
}
}
diff --git a/src/com/android/gallery3d/filtershow/filters/BaseFiltersManager.java b/src/com/android/gallery3d/filtershow/filters/BaseFiltersManager.java
index e93175a92..237629ab6 100644
--- a/src/com/android/gallery3d/filtershow/filters/BaseFiltersManager.java
+++ b/src/com/android/gallery3d/filtershow/filters/BaseFiltersManager.java
@@ -329,22 +329,19 @@ public abstract class BaseFiltersManager implements FiltersManagerInterface {
int[] textId = {
R.string.crop,
R.string.straighten,
- R.string.rotate,
- R.string.mirror
+ R.string.rotate
};
int[] overlayId = {
R.drawable.filtershow_button_geometry_crop,
R.drawable.filtershow_button_geometry_straighten,
- R.drawable.filtershow_button_geometry_rotate,
- R.drawable.filtershow_button_geometry_flip
+ R.drawable.filtershow_button_geometry_rotate
};
FilterRepresentation[] geometryFilters = {
new FilterCropRepresentation(),
new FilterStraightenRepresentation(),
- new FilterRotateRepresentation(),
- new FilterMirrorRepresentation()
+ new FilterRotateRepresentation()
};
for (int i = 0; i < textId.length; i++) {
@@ -359,7 +356,6 @@ public abstract class BaseFiltersManager implements FiltersManagerInterface {
}
//mTools.add(getRepresentation(ImageFilterRedEye.class));
- mTools.add(getRepresentation(ImageFilterDraw.class));
}
public void removeRepresentation(ArrayList<FilterRepresentation> list,