aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2015-02-16 22:55:46 +0100
committerSamuel Tardieu <sam@rfc1149.net>2015-02-16 22:55:46 +0100
commit9e4c5b5882ba0c6d0b26fe65718e15ac87a2b555 (patch)
tree4f8f73982ec0865b42595add1b7c5b5d88b969ff /main/src/cgeo/geocaching/ui
parent02d7eda64bc7827bc82ddbf969ba537abe542919 (diff)
downloadcgeo-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.java4
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);
}