Skip to content

Commit 0dfb069

Browse files
authored
Add ofSkeleton demo to demo app (#313)
* Clean up desugaring mentions in `AndroidDateTimeFormatter.ofSkeleton` doc comments * Pull standard format demo into standalone function * Add tab for skeleton format demo * Update Demo API to take `ZonedDateTime` rather than `Instant` * Move system time setting in Demo to take up less space * Reorder functions in Demo.kt to match UI structure * Remember all date-time formatters * Make a bunch of demo properties saveable * Fix state saving of locale dropdown * Hide locale dropdown when there is only one suggestion matching the typed text
1 parent c390969 commit 0dfb069

File tree

3 files changed

+421
-242
lines changed

3 files changed

+421
-242
lines changed

datetimeformatters/src/main/java/dev/drewhamilton/androidtime/format/AndroidDateTimeFormatter.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,7 @@ object AndroidDateTimeFormatter {
431431
*
432432
* This function will automatically correct for grammatical necessity. Given the same "MMMMd"
433433
* input, the formatter will use "d LLLL" in the `fa_IR` locale, where stand-alone months are
434-
* necessary. **Warning: core library desugaring does not currently support formatting with
435-
* 'L'.**
434+
* necessary.
436435
*
437436
* Lengths are preserved where meaningful, so "Md" would give a different result to "MMMd", say,
438437
* except in a locale such as `ja_JP` where there is only one length of month.
@@ -463,8 +462,7 @@ object AndroidDateTimeFormatter {
463462
*
464463
* This function will automatically correct for grammatical necessity. Given the same "MMMMd"
465464
* input, the formatter will use "d LLLL" in the `fa_IR` locale, where stand-alone months are
466-
* necessary. **Warning: core library desugaring does not currently support formatting with
467-
* 'L'.**
465+
* necessary.
468466
*
469467
* Lengths are preserved where meaningful, so "Md" would give a different result to "MMMd", say,
470468
* except in a locale such as `ja_JP` where there is only one length of month.

0 commit comments

Comments
 (0)