Commit 06cf3784 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Remove the button to access the video informations

The contextual menu is more suitable for this task.
parent f68f0494
......@@ -33,11 +33,4 @@
android:textColor="#888888"
android:paddingLeft="12dip" />
</LinearLayout>
<ImageView
android:id="@+id/ml_item_more"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:src="@drawable/ic_next"
android:paddingRight="12dip"
android:paddingLeft="5dip" />
</LinearLayout>
\ No newline at end of file
......@@ -135,7 +135,6 @@ public class VideoListAdapter extends ArrayAdapter<Media>
holder.thumbnail = (ImageView) v.findViewById(R.id.ml_item_thumbnail);
holder.title = (TextView) v.findViewById(R.id.ml_item_title);
holder.subtitle = (TextView) v.findViewById(R.id.ml_item_subtitle);
holder.more = (ImageView) v.findViewById(R.id.ml_item_more);
v.setTag(holder);
} else
holder = (ViewHolder) v.getTag();
......@@ -167,23 +166,10 @@ public class VideoListAdapter extends ArrayAdapter<Media>
Util.millisToString(media.getLength()),
media.getWidth(), media.getHeight()));
}
holder.more.setTag(media);
holder.more.setOnClickListener(moreClickListener);
return v;
}
private final OnClickListener moreClickListener = new OnClickListener() {
@Override
public void onClick(View v) {
Media item = (Media) v.getTag();
Intent intent = new Intent(getContext(), MediaInfoActivity.class);
intent.putExtra("itemLocation", item.getLocation());
getContext().startActivity(intent);
}
};
static class ViewHolder {
View layout;
ImageView thumbnail;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment