From bd1bc59681f6597cf030376825a82f9aeed24d79 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sun, 29 Dec 2013 18:09:47 +0100 Subject: cleanup: remove references to calendar addon from contacts addon --- cgeo-contacts/src/cgeo/contacts/Compatibility.java | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 cgeo-contacts/src/cgeo/contacts/Compatibility.java (limited to 'cgeo-contacts/src') diff --git a/cgeo-contacts/src/cgeo/contacts/Compatibility.java b/cgeo-contacts/src/cgeo/contacts/Compatibility.java deleted file mode 100644 index dd4ae0a..0000000 --- a/cgeo-contacts/src/cgeo/contacts/Compatibility.java +++ /dev/null @@ -1,23 +0,0 @@ -package cgeo.contacts; - -import android.net.Uri; -import android.os.Build; - -public final class Compatibility { - - private final static int sdkVersion = Build.VERSION.SDK_INT; - private final static boolean isLevel8 = sdkVersion >= 8; - private final static boolean isLevel14 = sdkVersion >= 14; - - public static Uri getCalendarProviderURI() { - return Uri.parse(isLevel8 ? "content://com.android.calendar/calendars" : "content://calendar/calendars"); - } - - public static Uri getCalendarEventsProviderURI() { - return Uri.parse(isLevel8 ? "content://com.android.calendar/events" : "content://calendar/events"); - } - - public static boolean isLevel14() { - return isLevel14; - } -} -- cgit v1.1