Display portrait resolution first

This commit is contained in:
Cameron Gutman
2022-09-06 22:52:43 -05:00
parent 9bc893b6ad
commit 2b56005bd2

View File

@@ -157,10 +157,10 @@ public class StreamSettings extends Activity {
}
private void addNativeResolutionEntries(int nativeWidth, int nativeHeight, boolean insetsRemoved) {
addNativeResolutionEntry(nativeWidth, nativeHeight, insetsRemoved, false);
if (PreferenceConfiguration.isSquarishScreen(nativeWidth, nativeHeight)) {
addNativeResolutionEntry(nativeHeight, nativeWidth, insetsRemoved, true);
}
addNativeResolutionEntry(nativeWidth, nativeHeight, insetsRemoved, false);
}
private void removeValue(String preferenceKey, String value, Runnable onMatched) {