summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/PhotoView.java
diff options
context:
space:
mode:
authorAhbong Chang <cwahbong@google.com>2012-07-30 11:34:13 +0800
committerAhbong Chang <cwahbong@google.com>2012-07-30 11:42:01 +0800
commit7817979db0c52ffeacb951625b1e821eba303285 (patch)
tree5ae75517d45dae1486815b41bd56af0685bf0f91 /src/com/android/gallery3d/ui/PhotoView.java
parent995c4566bed7df1aa48ba7e1351f964efa73880b (diff)
downloadandroid_packages_apps_Gallery2-7817979db0c52ffeacb951625b1e821eba303285.tar.gz
android_packages_apps_Gallery2-7817979db0c52ffeacb951625b1e821eba303285.tar.bz2
android_packages_apps_Gallery2-7817979db0c52ffeacb951625b1e821eba303285.zip
Code clean up.
Remove unused imports. Remove unused fields. Remove unnecessary cast. Add missing override annotations. Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
Diffstat (limited to 'src/com/android/gallery3d/ui/PhotoView.java')
-rw-r--r--src/com/android/gallery3d/ui/PhotoView.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/ui/PhotoView.java b/src/com/android/gallery3d/ui/PhotoView.java
index 25254338a..ec042da23 100644
--- a/src/com/android/gallery3d/ui/PhotoView.java
+++ b/src/com/android/gallery3d/ui/PhotoView.java
@@ -539,7 +539,7 @@ public class PhotoView extends GLView {
boolean isDeletable(); // whether the picture can be deleted
void forceSize(); // called when mCompensation changes
Size getSize();
- };
+ }
class FullPicture implements Picture {
private int mRotation;
@@ -1046,9 +1046,8 @@ public class PhotoView extends GLView {
|| !mTouchBoxDeletable) {
return false;
}
- int maxVelocity = (int) GalleryUtils.dpToPixel(MAX_DISMISS_VELOCITY);
- int escapeVelocity =
- (int) GalleryUtils.dpToPixel(SWIPE_ESCAPE_VELOCITY);
+ int maxVelocity = GalleryUtils.dpToPixel(MAX_DISMISS_VELOCITY);
+ int escapeVelocity = GalleryUtils.dpToPixel(SWIPE_ESCAPE_VELOCITY);
int centerY = mPositionController.getPosition(mTouchBoxIndex)
.centerY();
boolean fastEnough = (Math.abs(vy) > escapeVelocity)