diff options
| author | Portree-Kid <keith.paterson@gmx.de> | 2012-11-15 18:35:59 +0100 |
|---|---|---|
| committer | Portree-Kid <keith.paterson@gmx.de> | 2012-11-15 18:35:59 +0100 |
| commit | 066797677a0c58413651468b6d2ce473f7482bea (patch) | |
| tree | 8ac34e66b55c9a02cd600ab372c0231c487ae59a /main/src/cgeo | |
| parent | 7f13a829f40d0653753989073e212291bea61334 (diff) | |
| download | cgeo-066797677a0c58413651468b6d2ce473f7482bea.zip cgeo-066797677a0c58413651468b6d2ce473f7482bea.tar.gz cgeo-066797677a0c58413651468b6d2ce473f7482bea.tar.bz2 | |
Fixes Issue #2164
Diffstat (limited to 'main/src/cgeo')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/FileSelectionListAdapter.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/ui/FileSelectionListAdapter.java b/main/src/cgeo/geocaching/ui/FileSelectionListAdapter.java index 28f9705..1b5d47f 100644 --- a/main/src/cgeo/geocaching/ui/FileSelectionListAdapter.java +++ b/main/src/cgeo/geocaching/ui/FileSelectionListAdapter.java @@ -54,9 +54,8 @@ public class FileSelectionListAdapter extends ArrayAdapter<File> { holder = (ViewHolder) v.getTag(); } - File current = new File(parentView.getCurrentFile()); - - if (file.equals(current)) { + String currentFile = parentView.getCurrentFile(); + if (currentFile != null && file.equals(new File(currentFile))) { holder.filename.setTypeface(holder.filename.getTypeface(), Typeface.BOLD); } else { holder.filename.setTypeface(holder.filename.getTypeface(), Typeface.NORMAL); |
