diff options
Diffstat (limited to 'src/com/android/gallery3d/filtershow/FilterShowActivity.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/FilterShowActivity.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index 2ac7e981b..9512ff088 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -462,7 +462,15 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL if (representation == null) { return; } - useFilterRepresentation(representation); + + // TODO: this check is needed because the GeometryMetadata doesn't quite + // follow the same pattern as the other filters to update/sync their values. + // We thus need to not call useFilterRepresentation() for now, as it + // would override the current Geometry. Once GeometryMetadata is fixed, + // let's remove the check and call useFilterRepresentation all the time. + if (!(representation instanceof GeometryMetadata)) { + useFilterRepresentation(representation); + } // show representation Editor mCurrentEditor = mEditorPlaceHolder.showEditor(representation.getEditorId()); |