diff options
Diffstat (limited to 'cgeo-contacts/src')
-rw-r--r-- | cgeo-contacts/src/cgeo/contacts/Compatibility.java | 23 |
1 files changed, 0 insertions, 23 deletions
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; - } -} |