Merge "Stop layout reset by setting empty locale list." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eb62f7f3e4
@@ -2093,7 +2093,7 @@ public final class Settings {
|
||||
*/
|
||||
public static void clearConfiguration(Configuration inoutConfig) {
|
||||
inoutConfig.fontScale = 0;
|
||||
if (!inoutConfig.userSetLocale) {
|
||||
if (!inoutConfig.userSetLocale && !inoutConfig.getLocales().isEmpty()) {
|
||||
inoutConfig.setLocales(LocaleList.getEmptyLocaleList());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user