diff options
author | Owen Lin <owenlin@google.com> | 2012-05-07 16:35:53 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2012-05-17 12:59:21 -0700 |
commit | 3aad1aba14d3abe8324e0a0e129627d51a466bc4 (patch) | |
tree | 48652c461e62e8b7f74b7755427791ae8012f511 /src/com/android/gallery3d/app/TransitionStore.java | |
parent | 93300e13d5ae3b4e4c532a90fc7f763ec62cbb8c (diff) | |
download | android_packages_apps_Snap-3aad1aba14d3abe8324e0a0e129627d51a466bc4.tar.gz android_packages_apps_Snap-3aad1aba14d3abe8324e0a0e129627d51a466bc4.tar.bz2 android_packages_apps_Snap-3aad1aba14d3abe8324e0a0e129627d51a466bc4.zip |
Add transition animation for tapping from PhotoPage.
bug:6383694
Change-Id: Ib457d6b636dafd3f8ef7340bfa85725f14d90bd0
Diffstat (limited to 'src/com/android/gallery3d/app/TransitionStore.java')
-rw-r--r-- | src/com/android/gallery3d/app/TransitionStore.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/TransitionStore.java b/src/com/android/gallery3d/app/TransitionStore.java new file mode 100644 index 000000000..9c09e7ba5 --- /dev/null +++ b/src/com/android/gallery3d/app/TransitionStore.java @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.gallery3d.app; + +import java.util.HashMap; + +public class TransitionStore { + private HashMap<Object, Object> mStorage = new HashMap<Object, Object>(); + + public void put(Object key, Object value) { + mStorage.put(key, value); + } + + @SuppressWarnings("unchecked") + public <T> T get(Object key) { + return (T) mStorage.get(key); + } + + public void clear() { + mStorage.clear(); + } +} |