diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-07-29 23:03:33 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-07-29 23:03:33 +0200 |
commit | a1feb07bb2866d3d6fccca2fb5ffd2f12e9ff51c (patch) | |
tree | 44ae378702f185213b48542870eeed22e354af13 /src/org/cyanogenmod/wallpapers/photophase/animations | |
parent | 22eafa91bd62d2c26fc40aaa3aba9b1cfc410039 (diff) | |
download | android_packages_wallpapers_PhotoPhase-a1feb07bb2866d3d6fccca2fb5ffd2f12e9ff51c.tar.gz android_packages_wallpapers_PhotoPhase-a1feb07bb2866d3d6fccca2fb5ffd2f12e9ff51c.tar.bz2 android_packages_wallpapers_PhotoPhase-a1feb07bb2866d3d6fccca2fb5ffd2f12e9ff51c.zip |
Last album and restore command
- Add the last album to the array of albums
- Restore command reset the status of the flip controller
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src/org/cyanogenmod/wallpapers/photophase/animations')
-rw-r--r-- | src/org/cyanogenmod/wallpapers/photophase/animations/AlbumsFlip3dAnimationController.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/wallpapers/photophase/animations/AlbumsFlip3dAnimationController.java b/src/org/cyanogenmod/wallpapers/photophase/animations/AlbumsFlip3dAnimationController.java index 44101f4..228f827 100644 --- a/src/org/cyanogenmod/wallpapers/photophase/animations/AlbumsFlip3dAnimationController.java +++ b/src/org/cyanogenmod/wallpapers/photophase/animations/AlbumsFlip3dAnimationController.java @@ -77,6 +77,23 @@ public class AlbumsFlip3dAnimationController { } /** + * Method that unregister the controller + */ + public void unregister() { + getFrontView().setOnClickListener(null); + getBackView().setOnClickListener(null); + } + + /** + * Method that reset the controller + */ + public void reset() { + if (!mFrontFace) { + applyAnimation(true); + } + } + + /** * Method that applies the animation over the views * * @param inverse Applies the inverse animation |