diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2015-03-17 09:55:40 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2015-03-17 09:56:34 +0100 |
| commit | aa636ae7714ff3263a3ca4b338327519e482589c (patch) | |
| tree | 38b563682420b9cf58abfe17ab26252964fe29e1 /main/src/cgeo/geocaching/ui | |
| parent | be88c507c2097e64a9213430589231764cd8ec5e (diff) | |
| download | cgeo-aa636ae7714ff3263a3ca4b338327519e482589c.zip cgeo-aa636ae7714ff3263a3ca4b338327519e482589c.tar.gz cgeo-aa636ae7714ff3263a3ca4b338327519e482589c.tar.bz2 | |
fix #4702: cache names disappearing in travel bug log entries
Diffstat (limited to 'main/src/cgeo/geocaching/ui')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/logs/TrackableLogsViewCreator.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/ui/logs/TrackableLogsViewCreator.java b/main/src/cgeo/geocaching/ui/logs/TrackableLogsViewCreator.java index c120286..ef8f5cc 100644 --- a/main/src/cgeo/geocaching/ui/logs/TrackableLogsViewCreator.java +++ b/main/src/cgeo/geocaching/ui/logs/TrackableLogsViewCreator.java @@ -44,10 +44,9 @@ public class TrackableLogsViewCreator extends LogsViewCreator { @Override protected void fillCountOrLocation(final LogViewHolder holder, final LogEntry log) { - if (StringUtils.isBlank(log.cacheName)) { - holder.countOrLocation.setVisibility(View.GONE); - } else { + if (StringUtils.isNotBlank(log.cacheName)) { holder.countOrLocation.setText(Html.fromHtml(log.cacheName)); + holder.countOrLocation.setVisibility(View.VISIBLE); final String cacheGuid = log.cacheGuid; final String cacheName = log.cacheName; holder.countOrLocation.setOnClickListener(new View.OnClickListener() { @@ -56,6 +55,8 @@ public class TrackableLogsViewCreator extends LogsViewCreator { CacheDetailActivity.startActivityGuid(activity, cacheGuid, Html.fromHtml(cacheName).toString()); } }); + } else { + holder.countOrLocation.setVisibility(View.GONE); } } |
