aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/cyanogenmod/wallpapers/photophase/animations
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-07-29 23:03:33 +0200
committerJorge Ruesga <jorge@ruesga.com>2013-07-29 23:03:33 +0200
commita1feb07bb2866d3d6fccca2fb5ffd2f12e9ff51c (patch)
tree44ae378702f185213b48542870eeed22e354af13 /src/org/cyanogenmod/wallpapers/photophase/animations
parent22eafa91bd62d2c26fc40aaa3aba9b1cfc410039 (diff)
downloadandroid_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.java17
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