Loading core/java/android/app/ResourcesManager.java +12 −12 Original line number Diff line number Diff line Loading @@ -839,9 +839,9 @@ public class ResourcesManager { tmpConfig = new Configuration(); } tmpConfig.setTo(config); if (!isDefaultDisplay) { // Get new DisplayMetrics based on the DisplayAdjustments given // to the ResourcesImpl. Udate a copy if the CompatibilityInfo // to the ResourcesImpl. Update a copy if the CompatibilityInfo // changed, because the ResourcesImpl object will handle the // update internally. DisplayAdjustments daj = r.getDisplayAdjustments(); Loading @@ -851,7 +851,7 @@ public class ResourcesManager { } dm = getDisplayMetrics(displayId, daj); applyNonDefaultDisplayMetricsToConfiguration(dm, tmpConfig); } if (hasOverrideConfiguration) { tmpConfig.updateFrom(key.mOverrideConfiguration); } Loading core/java/android/util/DisplayMetrics.java +4 −0 Original line number Diff line number Diff line Loading @@ -268,6 +268,10 @@ public class DisplayMetrics { } public void setTo(DisplayMetrics o) { if (this == o) { return; } widthPixels = o.widthPixels; heightPixels = o.heightPixels; density = o.density; Loading Loading
core/java/android/app/ResourcesManager.java +12 −12 Original line number Diff line number Diff line Loading @@ -839,9 +839,9 @@ public class ResourcesManager { tmpConfig = new Configuration(); } tmpConfig.setTo(config); if (!isDefaultDisplay) { // Get new DisplayMetrics based on the DisplayAdjustments given // to the ResourcesImpl. Udate a copy if the CompatibilityInfo // to the ResourcesImpl. Update a copy if the CompatibilityInfo // changed, because the ResourcesImpl object will handle the // update internally. DisplayAdjustments daj = r.getDisplayAdjustments(); Loading @@ -851,7 +851,7 @@ public class ResourcesManager { } dm = getDisplayMetrics(displayId, daj); applyNonDefaultDisplayMetricsToConfiguration(dm, tmpConfig); } if (hasOverrideConfiguration) { tmpConfig.updateFrom(key.mOverrideConfiguration); } Loading
core/java/android/util/DisplayMetrics.java +4 −0 Original line number Diff line number Diff line Loading @@ -268,6 +268,10 @@ public class DisplayMetrics { } public void setTo(DisplayMetrics o) { if (this == o) { return; } widthPixels = o.widthPixels; heightPixels = o.heightPixels; density = o.density; Loading