Merge "Ignore empty locale list when diffing Configuration objects"

This commit is contained in:
Wale Ogunwale
2015-09-03 22:55:41 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}