diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2015-02-16 22:55:46 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2015-02-16 22:55:46 +0100 |
| commit | 9e4c5b5882ba0c6d0b26fe65718e15ac87a2b555 (patch) | |
| tree | 4f8f73982ec0865b42595add1b7c5b5d88b969ff /main/src/cgeo/geocaching/ui | |
| parent | 02d7eda64bc7827bc82ddbf969ba537abe542919 (diff) | |
| download | cgeo-9e4c5b5882ba0c6d0b26fe65718e15ac87a2b555.zip cgeo-9e4c5b5882ba0c6d0b26fe65718e15ac87a2b555.tar.gz cgeo-9e4c5b5882ba0c6d0b26fe65718e15ac87a2b555.tar.bz2 | |
Rename DateUtils into CalendarUtils
cgeo uses android.text.format.DateUtils, having a utility class with the
same name in a different package might be confusing.
Diffstat (limited to 'main/src/cgeo/geocaching/ui')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/CacheListAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/ui/CacheListAdapter.java b/main/src/cgeo/geocaching/ui/CacheListAdapter.java index a5146cd..e2daf11 100644 --- a/main/src/cgeo/geocaching/ui/CacheListAdapter.java +++ b/main/src/cgeo/geocaching/ui/CacheListAdapter.java @@ -18,7 +18,7 @@ import cgeo.geocaching.sorting.EventDateComparator; import cgeo.geocaching.sorting.InverseComparator; import cgeo.geocaching.sorting.VisitComparator; import cgeo.geocaching.utils.AngleUtils; -import cgeo.geocaching.utils.DateUtils; +import cgeo.geocaching.utils.CalendarUtils; import cgeo.geocaching.utils.Formatter; import cgeo.geocaching.utils.Log; @@ -414,7 +414,7 @@ public class CacheListAdapter extends ArrayAdapter<Geocache> { } Spannable spannable = null; - if (cache.isDisabled() || cache.isArchived() || DateUtils.isPastEvent(cache)) { // strike + if (cache.isDisabled() || cache.isArchived() || CalendarUtils.isPastEvent(cache)) { // strike spannable = Spannable.Factory.getInstance().newSpannable(cache.getName()); spannable.setSpan(new StrikethroughSpan(), 0, spannable.toString().length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } |
