summaryrefslogtreecommitdiffstats
path: root/src/com/android/photos
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2013-03-12 16:11:18 -0700
committerJohn Reck <jreck@google.com>2013-03-12 16:11:47 -0700
commit2f205d54c88ea3f6b1a1a0630201fdb10b0689e2 (patch)
tree28c068ea8de4e48c4271802337f7e4da10fef851 /src/com/android/photos
parentaf0343eb04ecd0e1895042e0f0656db0cc52dd4c (diff)
downloadandroid_packages_apps_Gallery2-2f205d54c88ea3f6b1a1a0630201fdb10b0689e2.tar.gz
android_packages_apps_Gallery2-2f205d54c88ea3f6b1a1a0630201fdb10b0689e2.tar.bz2
android_packages_apps_Gallery2-2f205d54c88ea3f6b1a1a0630201fdb10b0689e2.zip
basic activated support
Change-Id: If1c1faf42311ddbc76b617bff5f3c6bdafdef5d1
Diffstat (limited to 'src/com/android/photos')
-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) {