diff options
author | Andrew Dolgov <[email protected]> | 2013-12-17 23:46:00 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-12-17 23:47:38 +0400 |
commit | 4384b802c88293568fa72e128b3b03725c6631cb (patch) | |
tree | 9b024d034339d96367f3b8eb48098c704329a6f4 /src | |
parent | 133d89b10652ed0d1da44ebbda572f3490d36f65 (diff) |
fix ugly comics backgrounds on 4.4
Diffstat (limited to 'src')
-rw-r--r-- | src/org/fox/ttcomics/ComicListFragment.java | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/org/fox/ttcomics/ComicListFragment.java b/src/org/fox/ttcomics/ComicListFragment.java index e0feacb..31dbf19 100644 --- a/src/org/fox/ttcomics/ComicListFragment.java +++ b/src/org/fox/ttcomics/ComicListFragment.java @@ -152,25 +152,17 @@ public class ComicListFragment extends Fragment implements OnItemClickListener { ImageView thumbnail = (ImageView) v.findViewById(R.id.thumbnail);
if (thumbnail != null) {
- View imageholder = v.findViewById(R.id.listimageholder);
+ View imageholder = v.findViewById(R.id.imageholder);
int padding = dpToPx(2);
-
- if (size == SIZE_DIR) {
- if (isList && imageholder != null) {
- imageholder.setBackgroundResource(R.drawable.border_folder);
- imageholder.setPadding(padding, padding, padding, padding);
- } else {
- thumbnail.setBackgroundResource(R.drawable.border_folder);
- }
- } else {
-
- if (isList && imageholder != null) {
- imageholder.setBackgroundResource(R.drawable.border);
+ if (imageholder != null) {
+ if (size == SIZE_DIR) {
+ imageholder.setBackgroundResource(R.drawable.comic_tile_folder);
imageholder.setPadding(padding, padding, padding, padding);
} else {
- thumbnail.setBackgroundResource(R.drawable.border);
+ imageholder.setBackgroundResource(R.drawable.comic_tile);
+ imageholder.setPadding(padding, padding, padding, padding);
}
}
|