Language changes will prevent previously saved display settings from
being loaded. This provides a fallback in the event a single entry exists
but does not match the current (localized) name of the Built-In Display.
BUG:
18130296
BUG:
18190800
Change-Id: Ibeff56045fc5713b9f79707dfb92bafc9fadd84f
public void getOverscanLocked(String name, Rect outRect) {
Entry entry = mEntries.get(name);
+ if (entry == null && mEntries.size() == 1) {
+ entry = mEntries.values().iterator().next();
+ }
if (entry != null) {
outRect.left = entry.overscanLeft;
outRect.top = entry.overscanTop;