This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Locale with LocaleList in LocaleSpan.
This is a straightforward upgrading of LocaleSpan. LocaleSpan was designed to be a mechanism to override text locale only in a certain substring. Since now text locale supports multiple locales with LocaleList, it should make sense to let LocaleSpan have the ability to have multiple locales with LocaleList. This CL also addresses an existing issue that LocaleSpan maintained only Language/Country/Variant tags. Now Locale data associated with a LocaleSpan is guaranteed to be preserved as long as each of them can be created from a BCP 47 language tag with Locale#forLanguageTag(String). Bug: 26567158 Change-Id: Ib754796d399cd00f9d02005df88874a5cd5c7642
- Loading branch information
Showing
4 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters