Default camera opens oldest image when opening gallery from it, instead of latest image

I’ve seen this mentioned before, but doesn’t come up often. The second item has linked code with a comment intro explaining the fallback mode: no exif → last_media_scanned_check_uri. I get lost when looking at the function that calls broadcastFile() that eventually calls setLastMediaScanned() what is what you get when clicking/touching the preview. I wonder if the behaviour changes if you disable/enable storage access framework (“SAF”).