From 908fd1d6ae07bfc7d1a3027435b1577abf67e1c8 Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Tue, 11 Oct 2016 06:34:22 -0400 Subject: [PATCH] Fix NoSuchMethodError on Android 4.1 --- app/src/main/AndroidManifest.xml | 4 ++-- app/src/main/java/org/isoron/uhabits/utils/DateFormats.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8ee07eaff..ee57323d5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -21,8 +21,8 @@ + android:versionCode="25" + android:versionName="1.6.2"> diff --git a/app/src/main/java/org/isoron/uhabits/utils/DateFormats.java b/app/src/main/java/org/isoron/uhabits/utils/DateFormats.java index fac0d63bd..e5325ab32 100644 --- a/app/src/main/java/org/isoron/uhabits/utils/DateFormats.java +++ b/app/src/main/java/org/isoron/uhabits/utils/DateFormats.java @@ -44,7 +44,7 @@ public static SimpleDateFormat fromSkeleton(@NonNull String skeleton) { Locale locale = Locale.getDefault(); - if (SDK_INT >= JELLY_BEAN) + if (SDK_INT >= JELLY_BEAN_MR2) skeleton = getBestDateTimePattern(locale, skeleton); return fromSkeleton(skeleton, locale);