Changing the order of width and height in constructing Display.Mode
Bug: 192332479 Test: m Change-Id: Ic73aa725ac860996906d8baf32cebdbb0d3d0dee
This commit is contained in:
@@ -826,7 +826,7 @@ public final class DisplayManagerService extends SystemService {
|
||||
Settings.Global.USER_PREFERRED_RESOLUTION_HEIGHT, -1);
|
||||
final int width = Settings.Global.getInt(mContext.getContentResolver(),
|
||||
Settings.Global.USER_PREFERRED_RESOLUTION_WIDTH, -1);
|
||||
Display.Mode mode = new Display.Mode(height, width, refreshRate);
|
||||
Display.Mode mode = new Display.Mode(width, height, refreshRate);
|
||||
mUserPreferredMode = isResolutionAndRefreshRateValid(mode) ? mode : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user