Merge "Temporal fix of the Android Auto orientation chaniging on phone's orientation change." into rvc-dev

This commit is contained in:
Darryl Johnson
2020-04-10 14:07:36 +00:00
committed by Android (Google) Code Review

View File

@@ -1121,7 +1121,9 @@ public class ResourcesManager {
daj = new DisplayAdjustments(daj);
daj.setCompatibilityInfo(compat);
}
daj.setConfiguration(config);
if (displayId == Display.DEFAULT_DISPLAY) {
daj.setConfiguration(config);
}
DisplayMetrics dm = getDisplayMetrics(displayId, daj);
if (displayId != Display.DEFAULT_DISPLAY) {
applyNonDefaultDisplayMetricsToConfiguration(dm, tmpConfig);