Merge "Ignore empty locale list when diffing Configuration objects"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2fd7cc5ba5
@@ -1049,7 +1049,7 @@ public final class Configuration implements Parcelable, Comparable<Configuration
|
||||
}
|
||||
fixUpLocaleList();
|
||||
delta.fixUpLocaleList();
|
||||
if (!mLocaleList.equals(delta.mLocaleList)) {
|
||||
if (!delta.mLocaleList.isEmpty() && !mLocaleList.equals(delta.mLocaleList)) {
|
||||
changed |= ActivityInfo.CONFIG_LOCALE;
|
||||
changed |= ActivityInfo.CONFIG_LAYOUT_DIRECTION;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user