tilt-shift-camera/app
Ole-Morten Duesund 5b553c7196 Drive renderer rotation from Display.rotation, not OrientationEventListener
OrientationEventListener fires continuously on the raw accelerometer
tilt and crosses the ROTATION_90 / ROTATION_270 boundary at 45° — well
before the system actually rotates the activity. The renderer was
swapping its texcoord buffer at 45° tilt while the GL surface and
Compose layout were still in the previous orientation, so for the few
degrees between "OrientationEventListener fires" and "activity
rotates" the camera image rendered at the wrong rotation. Past that
window it snapped back into sync.

Use LocalConfiguration + Display.rotation to source the renderer's
rotation. Configuration only changes when the activity has actually
rotated, so the texcoord buffer flips in lock-step with the GL surface
and there is no transient mis-orientation. OrientationEventListener
is still used by capture for EXIF metadata.

Bump to 1.1.13.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 16:22:54 +02:00
..
src Drive renderer rotation from Display.rotation, not OrientationEventListener 2026-05-11 16:22:54 +02:00
build.gradle.kts Update all dependencies to March 2026 versions 2026-03-18 17:46:37 +01:00
proguard-rules.pro Remove unnecessary ProGuard keep rule and extract SaveResult to own file 2026-03-18 16:45:22 +01:00