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 { else {
updateNativeResolutionEntry( Display display = getActivity().getWindowManager().getDefaultDisplay();
getActivity().getWindowManager().getDefaultDisplay().getWidth(), int width = Math.max(display.getWidth(), display.getHeight());
getActivity().getWindowManager().getDefaultDisplay().getHeight()); int height = Math.min(display.getWidth(), display.getHeight());
updateNativeResolutionEntry(width, height);
} }
if (!PreferenceConfiguration.readPreferences(this.getActivity()).unlockFps) { if (!PreferenceConfiguration.readPreferences(this.getActivity()).unlockFps) {