Move localeScriptWasProvided to end of ResTable_config
This is to try and be safer with different versions potentially interpreting the data differently. Change-Id: I599b6a20d908e8379727a5b06cc6631f1954bcff
This commit is contained in:
@@ -1128,7 +1128,6 @@ struct ResTable_config
|
||||
// configuration. (eg. Hant, Latn, etc.). Interpreted in conjunction with
|
||||
// the locale field.
|
||||
char localeScript[4];
|
||||
bool localeScriptWasProvided;
|
||||
|
||||
// A single BCP-47 variant subtag. Will vary in length between 4 and 8
|
||||
// chars. Interpreted in conjunction with the locale field.
|
||||
@@ -1152,6 +1151,10 @@ struct ResTable_config
|
||||
uint32_t screenConfig2;
|
||||
};
|
||||
|
||||
// If true, it means that the script of the locale was explicitly provided.
|
||||
// If false, it means that the script was automatically computed.
|
||||
bool localeScriptWasProvided;
|
||||
|
||||
void copyFromDeviceNoSwap(const ResTable_config& o);
|
||||
|
||||
void copyFromDtoH(const ResTable_config& o);
|
||||
|
||||
Reference in New Issue
Block a user