diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2013-01-14 10:22:05 -0800 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2013-01-14 10:22:05 -0800 |
commit | 3d49241cf309365373a1c3e98838c764f718cd3e (patch) | |
tree | 19055816b126fcee9ae743f8a27bbe945e732172 | |
parent | a9de8750056fb8bacaafd9706e9e2320cbe0cbe1 (diff) | |
download | android_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.java | 4 |
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; |