Normalize resolution orientation on pre-M devices

This commit is contained in:
Cameron Gutman 2020-12-23 16:46:07 -06:00
parent d86092df1a
commit b4a7393dca

View File

@ -328,9 +328,10 @@ public class StreamSettings extends Activity {
}
}
else {
updateNativeResolutionEntry(
getActivity().getWindowManager().getDefaultDisplay().getWidth(),
getActivity().getWindowManager().getDefaultDisplay().getHeight());
Display display = getActivity().getWindowManager().getDefaultDisplay();
int width = Math.max(display.getWidth(), display.getHeight());
int height = Math.min(display.getWidth(), display.getHeight());
updateNativeResolutionEntry(width, height);
}
if (!PreferenceConfiguration.readPreferences(this.getActivity()).unlockFps) {