23cbe85610f780134cc77dd4a54732a22ed6e86e |
|
18-May-2016 |
Yohei Yukawa <yukawa@google.com> |
Move LocaleList to avoid layering violation. Since LocaleList needs to depend on android.os.Parcelable, we cannot let that class belong to "android.util" package, which causes layering violation. Bug: 28819696 Change-Id: Ia8de2ee9df3dd0a42b1fe84574439519b680fe18
/frameworks/base/core/java/android/text/style/LocaleSpan.java
|
10ea92aefa7051eb432383e0b56e7c44664fd560 |
|
02-May-2016 |
Raph Levien <raph@google.com> |
Make LocaleList constructor non-nullable This commit makes the LocaleList constructor require non-null arguments in all cases, and fixes all uses of LocaleList that could previously pass a null to use getEmptyLocaleList() instead (which is preferred anyway becaues it avoids an allocation. Bug: 28460668 Change-Id: I4b8b3cfa82914412731c2b79003951c46cb2afa1
/frameworks/base/core/java/android/text/style/LocaleSpan.java
|
fee44846376c212114223fc4259382921e6dca7a |
|
05-Feb-2016 |
Roozbeh Pournader <roozbeh@google.com> |
Various LocaleList cleanups - Remove the LocaleList#getPrimary() API. It had become confusing after locale negotiation was completely implemented. For example, it could create the confusion that calling getPrimary() on the default locale list would provide the default locale, etc. - Use the adjusted locale list from LocaleList.getAdjustedDefault() in Paints created with no locale list provided. - Change LocaleList#get() to treat out of bound indexes from both negative indexes and too large indexes the same way. Bug: 26984092 Bug: 26193251 Bug: 26834387 Change-Id: I75f77aea6b75e38793ed8477e5e5a4420d5e6d85
/frameworks/base/core/java/android/text/style/LocaleSpan.java
|
c38b51953921c17181fbe334cdaa95f188bfdb14 |
|
15-Jan-2016 |
Yohei Yukawa <yukawa@google.com> |
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
/frameworks/base/core/java/android/text/style/LocaleSpan.java
|
a70d4a90a029910f788c3e7f8715cf3b842b1e2b |
|
03-Jun-2015 |
Alan Viverette <alanv@google.com> |
Prevent poorly-extended ParcelableSpans from writing to parcels If a developer extends an existing ParcelableSpan and overwrites writeToParcel, TextUtils will crash when attempting to unparcel since the span type ID is not accurate. This CL makes a separate framework-private method for writeToParcel to ensure that even if a developer extends a ParcelableSpan class, they won't modify the parceling or unparceling code that's tied to the span type ID. Bug: 21274544 Change-Id: If4c3506a55999df7a3b6d87cb8d550235d7a02c6
/frameworks/base/core/java/android/text/style/LocaleSpan.java
|
ec97b4ddb467803d8637af2b64868b7b17861318 |
|
18-Aug-2012 |
Victoria Lease <violets@google.com> |
LocaleSpan makes Han disambiguation easy! I've also provided TextView.setTextLocale() for use in single-language TextViews. Change-Id: I7f1b0d49a2ece957a7b9b5d65d48385bf2c2a668
/frameworks/base/core/java/android/text/style/LocaleSpan.java
|