Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8828ee5 authored by Victor Chang's avatar Victor Chang
Browse files

Change the API signature of DateTimePatternGenerator.getBestPattern

It's a feedback from the API council.

Bug: 184018008
Test: m droid
Change-Id: I58ced6e0bc174d58008cb1874227bdc39de2d6af
parent e72a7b4f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -267,7 +267,8 @@ public class DateFormat {
        DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(locale);
        DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(locale);
        boolean allowDuplicateFields = !CompatChanges.isChangeEnabled(
        boolean allowDuplicateFields = !CompatChanges.isChangeEnabled(
                DISALLOW_DUPLICATE_FIELD_IN_SKELETON);
                DISALLOW_DUPLICATE_FIELD_IN_SKELETON);
        return dtpg.getBestPattern(skeleton, allowDuplicateFields);
        return dtpg.getBestPattern(skeleton, DateTimePatternGenerator.MATCH_NO_OPTIONS,
                allowDuplicateFields);
    }
    }


    /**
    /**