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 | 9313869da345937c60363ff97ae8e8320c48082c (patch) | |
| tree | 72c6ed9ff1c667053c895bff6354cf0aaf75ca83 | |
| parent | c5029eafeebd5fccd68b07a809ce6c66009f4ca6 (diff) | |
| download | android_packages_apps_Gallery2-9313869da345937c60363ff97ae8e8320c48082c.tar.gz android_packages_apps_Gallery2-9313869da345937c60363ff97ae8e8320c48082c.tar.bz2 android_packages_apps_Gallery2-9313869da345937c60363ff97ae8e8320c48082c.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; |
