mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 10:31:07 +00:00
Normalize resolution orientation on pre-M devices
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user