1
0
Fork 0
forked from suyu/suyu
suyu/src/android
Charles Lombardo 338d6f29b1 android: Properly adjust emulation surface aspect ratio
Previously the emulation surface wouldn't respond properly to orientation changes. This would result in the screen appearing stretched when starting in one orientation and switching to another.

The code for calculating the bounds of the view have been changed to match the expected behavior now. Before the view would just match parent in height and width. Now instead of using setLeftTopRightBottom (which is intended to be used for animations) we pass newly calculated bounds for the view into super. Now the view bounds match the emulation output.

This also means that we don't need the overload for the SettingsActivity to launch it using an ActivityResultLauncher. We can just update the view in onResume.
2023-08-27 00:16:53 -04:00
..
app android: Properly adjust emulation surface aspect ratio 2023-08-27 00:16:53 -04:00
gradle/wrapper android: Update gradle version to 8.1 2023-06-03 00:05:51 -07:00
.gitignore android: Various fixes for CI. 2023-06-03 00:06:05 -07:00
build.gradle.kts android: Adapt EmulationActivity to navigation component 2023-06-14 14:55:25 -04:00
gradle.properties android: Suppress a known incompatibility 2023-06-29 07:32:12 -04:00
gradlew android: Various fixes for CI. 2023-06-03 00:06:05 -07:00
gradlew.bat android: Various fixes for CI. 2023-06-03 00:06:05 -07:00
settings.gradle.kts android: Various fixes for CI. 2023-06-03 00:06:05 -07:00