summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/SlotView.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-08-24 12:25:57 +0800
committerOwen Lin <owenlin@google.com>2012-08-27 12:30:47 +0800
commite681d65a336c9ae79098b8a7e49cfe1e5affb695 (patch)
treee2e2c65d9f63fb6270037436602ec740156991c1 /src/com/android/gallery3d/ui/SlotView.java
parent93d87ff509cabdad9f02f379df7eba01a44969c7 (diff)
downloadandroid_packages_apps_Snap-e681d65a336c9ae79098b8a7e49cfe1e5affb695.tar.gz
android_packages_apps_Snap-e681d65a336c9ae79098b8a7e49cfe1e5affb695.tar.bz2
android_packages_apps_Snap-e681d65a336c9ae79098b8a7e49cfe1e5affb695.zip
Uses ActionBarSherlock in Gallery
bug: 6927267 Change-Id: I1c22975d1a1f3a36510ad93e6a0cefea110ca38f
Diffstat (limited to 'src/com/android/gallery3d/ui/SlotView.java')
-rw-r--r--src/com/android/gallery3d/ui/SlotView.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/ui/SlotView.java b/src/com/android/gallery3d/ui/SlotView.java
index 1325aecd6..d77080adb 100644
--- a/src/com/android/gallery3d/ui/SlotView.java
+++ b/src/com/android/gallery3d/ui/SlotView.java
@@ -16,7 +16,6 @@
package com.android.gallery3d.ui;
-import android.content.Context;
import android.graphics.Rect;
import android.os.Handler;
import android.view.GestureDetector;
@@ -24,7 +23,7 @@ import android.view.MotionEvent;
import android.view.animation.DecelerateInterpolator;
import com.android.gallery3d.anim.Animation;
-import com.android.gallery3d.app.GalleryActivity;
+import com.android.gallery3d.app.AbstractGalleryActivity;
import com.android.gallery3d.common.Utils;
public class SlotView extends GLView {
@@ -88,10 +87,9 @@ public class SlotView extends GLView {
// to prevent allocating memory
private final Rect mTempRect = new Rect();
- public SlotView(GalleryActivity activity, Spec spec) {
- mGestureDetector = new GestureDetector(
- (Context) activity, new MyGestureListener());
- mScroller = new ScrollerHelper((Context) activity);
+ public SlotView(AbstractGalleryActivity activity, Spec spec) {
+ mGestureDetector = new GestureDetector(activity, new MyGestureListener());
+ mScroller = new ScrollerHelper(activity);
mHandler = new SynchronizedHandler(activity.getGLRoot());
setSlotSpec(spec);
}