summaryrefslogtreecommitdiffstats
path: root/src/com/android/photos/adapters
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/photos/adapters')
-rw-r--r--src/com/android/photos/adapters/PhotoThumbnailAdapter.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/photos/adapters/PhotoThumbnailAdapter.java b/src/com/android/photos/adapters/PhotoThumbnailAdapter.java
index 3776ca5a2..1190b8c85 100644
--- a/src/com/android/photos/adapters/PhotoThumbnailAdapter.java
+++ b/src/com/android/photos/adapters/PhotoThumbnailAdapter.java
@@ -22,9 +22,7 @@ import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
-import android.view.ViewGroup.LayoutParams;
import android.widget.CursorAdapter;
-import android.widget.GridView;
import android.widget.ImageView;
import com.android.gallery3d.R;
@@ -48,7 +46,7 @@ public class PhotoThumbnailAdapter extends CursorAdapter implements GalleryThumb
@Override
public void bindView(View view, Context context, Cursor cursor) {
- ImageView iv = (ImageView) view;
+ ImageView iv = (ImageView) view.findViewById(R.id.thumbnail);
Drawable recycle = iv.getDrawable();
Drawable drawable = mDrawableFactory.drawableForItem(cursor, recycle);
if (recycle != drawable) {