diff options
author | Andrew Dolgov <[email protected]> | 2013-11-29 15:46:56 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-11-29 15:46:56 +0400 |
commit | 2b194eb720a1f1b20e6a2a9bef1b45e08e86a90f (patch) | |
tree | 36e82fa3c517fd15c8f37a4697b17be1244b6797 /src | |
parent | 7295e711b31d41d463a12a56bed6eba8a3000bba (diff) |
add overflow icon to comic files
Diffstat (limited to 'src')
-rw-r--r-- | src/org/fox/ttcomics/ComicListFragment.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/org/fox/ttcomics/ComicListFragment.java b/src/org/fox/ttcomics/ComicListFragment.java index be9a6c6..9ae37b6 100644 --- a/src/org/fox/ttcomics/ComicListFragment.java +++ b/src/org/fox/ttcomics/ComicListFragment.java @@ -133,6 +133,22 @@ public class ComicListFragment extends Fragment implements OnItemClickListener { }
}
+ ImageView overflow = (ImageView) v.findViewById(R.id.comic_overflow);
+
+ if (overflow != null) {
+ if (size == SIZE_DIR) {
+ overflow.setVisibility(View.GONE);
+ } else {
+ overflow.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ getActivity().openContextMenu(v);
+ }
+ });
+ }
+ }
+
File thumbnailFile = new File(m_activity.getCacheFileName(firstChild != null ? firstChild : filePath + "/" + fileBaseName));
ImageView thumbnail = (ImageView) v.findViewById(R.id.thumbnail);
|