diff options
Diffstat (limited to 'main/src/cgeo/geocaching/cgeotrackable.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeotrackable.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/cgeotrackable.java b/main/src/cgeo/geocaching/cgeotrackable.java index 5aa6675..80b9f01 100644 --- a/main/src/cgeo/geocaching/cgeotrackable.java +++ b/main/src/cgeo/geocaching/cgeotrackable.java @@ -222,11 +222,10 @@ public class cgeotrackable extends AbstractActivity { @Override public void run() { - BitmapDrawable image; try { HtmlImage imgGetter = new HtmlImage(geocode, true, 0, false); - image = imgGetter.getDrawable(trackable.getImage()); + BitmapDrawable image = imgGetter.getDrawable(trackable.getImage()); Message message = handler.obtainMessage(0, image); handler.sendMessage(message); } catch (Exception e) { @@ -431,11 +430,9 @@ public class cgeotrackable extends AbstractActivity { LinearLayout listView = (LinearLayout) findViewById(R.id.log_list); listView.removeAllViews(); - RelativeLayout rowView; - if (trackable != null && trackable.getLogs() != null) { for (LogEntry log : trackable.getLogs()) { - rowView = (RelativeLayout) inflater.inflate(R.layout.trackable_logs_item, null); + RelativeLayout rowView = (RelativeLayout) inflater.inflate(R.layout.trackable_logs_item, null); if (log.date > 0) { ((TextView) rowView.findViewById(R.id.added)).setText(Formatter.formatShortDate(log.date)); @@ -544,11 +541,10 @@ public class cgeotrackable extends AbstractActivity { return; } - BitmapDrawable image; try { HtmlImage imgGetter = new HtmlImage(trackable.getGeocode(), false, 0, false); - image = imgGetter.getDrawable(url); + BitmapDrawable image = imgGetter.getDrawable(url); Message message = handler.obtainMessage(0, image); handler.sendMessage(message); } catch (Exception e) { |