Allow apps to handle gender configuration change

Remove the condition to allow all apps to handle gender config change

Bug: 263201531
Test: atest GrammaticalInflectionManagerTest
Change-Id: If222fe16ff07e6d34755f03e7ec0acc06e51807a
This commit is contained in:
Calvin Pan
2023-02-06 17:52:49 +08:00
parent f9899e9434
commit dbc8cc2272

View File

@@ -1998,7 +1998,7 @@ public final class Configuration implements Parcelable, Comparable<Configuration
changed |= ActivityInfo.CONFIG_FONT_WEIGHT_ADJUSTMENT;
}
if (!publicOnly && mGrammaticalGender != delta.mGrammaticalGender) {
if (mGrammaticalGender != delta.mGrammaticalGender) {
changed |= ActivityInfo.CONFIG_GRAMMATICAL_GENDER;
}
return changed;