Browse Source

Merge pull request #195 from entur/fix-illegal-pattern-character

Fix return of wrong pattern piece
master
Henning Hall 5 years ago
committed by GitHub
parent
commit
0ffe7ec6be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      android/src/main/java/com/henninghall/date_picker/LocaleUtils.java

+ 1
- 3
android/src/main/java/com/henninghall/date_picker/LocaleUtils.java View File

@ -17,7 +17,7 @@ public class LocaleUtils {
*/
public static String getPatternIncluding(String format, Locale locale) {
for (String piece: getFullPatternPieces(locale)){
if(piece.contains(format)) {
if(piece.contains(format) && !piece.contains("'")) {
return piece;
}
}
@ -50,5 +50,3 @@ public class LocaleUtils {
}
}

Loading…
Cancel
Save