Please sign in to comment.
Make LocaleList Parcelable.
This is a preparation work to pass LocaleList from TextView to IMEs via EditorInfo. Marshalling and unmrshlling LocaleList via Parcel is actually not so difficult. We can reuse its internal data representation "localeTags" as a canonical serialization format. As for implementation, there are two choices. One is making LocaleList Parcelable and the other is having a utility method to do that. This CL uses Parcelable approach so that not only Framework but also application developers can reuse the code. Bug: 22859862 Change-Id: Ib28363bd5ff74228d2abeaa95004ec8bed72bddd
- Loading branch information...
Showing with 60 additions and 4 deletions.
|@@ -0,0 +1,19 @@|
|* Copyright (C) 2015 The Android Open Source Project|
|* Licensed under the Apache License, Version 2.0 (the "License");|
|* you may not use this file except in compliance with the License.|
|* You may obtain a copy of the License at|
|* Unless required by applicable law or agreed to in writing, software|
|* distributed under the License is distributed on an "AS IS" BASIS,|
|* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.|
|* See the License for the specific language governing permissions and|
|* limitations under the License.|