summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/ModuleSwitcher.java
diff options
context:
space:
mode:
authorSascha Haeberling <haeberling@google.com>2013-09-18 14:28:51 -0700
committerSascha Haeberling <haeberling@google.com>2013-09-18 14:32:55 -0700
commit638e6f06c877d90b907f66ea9c22b3c6b73c7384 (patch)
tree6d2123a6d02228f867ccc6f7e51e2a658b2092d5 /src/com/android/camera/ui/ModuleSwitcher.java
parent4ed20592482d2ab2f3f48ee72d5b1c06bf009034 (diff)
downloadandroid_packages_apps_Snap-638e6f06c877d90b907f66ea9c22b3c6b73c7384.tar.gz
android_packages_apps_Snap-638e6f06c877d90b907f66ea9c22b3c6b73c7384.tar.bz2
android_packages_apps_Snap-638e6f06c877d90b907f66ea9c22b3c6b73c7384.zip
Clean up ApiHelper and remove unused code paths.
Bug: 10821545 As we're targeting ICS there are a lot of checks and code paths that are no longer in use. This CL cleans them up. Change-Id: Ic3dd26628a94e134e25e2c496ccec1f1f957216d
Diffstat (limited to 'src/com/android/camera/ui/ModuleSwitcher.java')
-rw-r--r--src/com/android/camera/ui/ModuleSwitcher.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/com/android/camera/ui/ModuleSwitcher.java b/src/com/android/camera/ui/ModuleSwitcher.java
index 5eb316c7f..69ae3b57e 100644
--- a/src/com/android/camera/ui/ModuleSwitcher.java
+++ b/src/com/android/camera/ui/ModuleSwitcher.java
@@ -34,7 +34,6 @@ import android.view.ViewGroup;
import android.widget.FrameLayout.LayoutParams;
import android.widget.LinearLayout;
-import com.android.camera.util.ApiHelper;
import com.android.camera.util.CameraUtil;
import com.android.camera.util.PhotoSphereHelper;
import com.android.camera.util.UsageStatistics;
@@ -317,9 +316,6 @@ public class ModuleSwitcher extends RotateImageView
}
private void popupAnimationSetup() {
- if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) {
- return;
- }
layoutPopup();
mPopup.setScaleX(0.3f);
mPopup.setScaleY(0.3f);
@@ -329,9 +325,6 @@ public class ModuleSwitcher extends RotateImageView
}
private boolean animateHidePopup() {
- if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) {
- return false;
- }
if (mHideAnimationListener == null) {
mHideAnimationListener = new AnimatorListenerAdapter() {
@Override
@@ -358,9 +351,6 @@ public class ModuleSwitcher extends RotateImageView
}
private boolean animateShowPopup() {
- if (!ApiHelper.HAS_VIEW_PROPERTY_ANIMATOR) {
- return false;
- }
if (mNeedsAnimationSetup) {
popupAnimationSetup();
}