summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2013-01-14 10:22:05 -0800
committerRuben Brunk <rubenbrunk@google.com>2013-01-14 10:22:05 -0800
commit3d49241cf309365373a1c3e98838c764f718cd3e (patch)
tree19055816b126fcee9ae743f8a27bbe945e732172
parenta9de8750056fb8bacaafd9706e9e2320cbe0cbe1 (diff)
downloadandroid_packages_apps_Snap-3d49241cf309365373a1c3e98838c764f718cd3e.tar.gz
android_packages_apps_Snap-3d49241cf309365373a1c3e98838c764f718cd3e.tar.bz2
android_packages_apps_Snap-3d49241cf309365373a1c3e98838c764f718cd3e.zip
Fixed ClassCastException on open crop aspect menu.
Bug: 7999315 Change-Id: I78bd4c12f5241215629f6eb06fdc7b101ed6ddb6
-rw-r--r--src/com/android/gallery3d/filtershow/imageshow/ImageCrop.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageCrop.java b/src/com/android/gallery3d/filtershow/imageshow/ImageCrop.java
index e2f7db01c..284bfde76 100644
--- a/src/com/android/gallery3d/filtershow/imageshow/ImageCrop.java
+++ b/src/com/android/gallery3d/filtershow/imageshow/ImageCrop.java
@@ -675,7 +675,7 @@ public class ImageCrop extends ImageGeometry {
}
}
- private void setAspectButton(Button button, int itemId) {
+ private void setAspectButton(FramedTextButton button, int itemId) {
switch (itemId) {
case R.id.crop_menu_1to1: {
String t = getActivity().getString(R.string.aspect1to1_effect);
@@ -741,7 +741,7 @@ public class ImageCrop extends ImageGeometry {
}
private void showPopupMenu(LinearLayout accessoryViewList) {
- final Button button = (Button) accessoryViewList.findViewById(
+ final FramedTextButton button = (FramedTextButton) accessoryViewList.findViewById(
R.id.cropUtilityButton);
if (button == null) {
return;