Skip to content

Fallback for Android 10 bug: getType() returns null for tree URIs#6402

Open
abakum wants to merge 2 commits into
fyne-io:developfrom
abakum:develop
Open

Fallback for Android 10 bug: getType() returns null for tree URIs#6402
abakum wants to merge 2 commits into
fyne-io:developfrom
abakum:develop

Conversation

@abakum

@abakum abakum commented Jul 6, 2026

Copy link
Copy Markdown

Fixes #6401

Tested on emulator with API28, API29, API37

@coveralls

coveralls commented Jul 7, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 59.848%. remained the same — abakum:develop into fyne-io:develop

Added boundWindow variable to track the association between
EGLSurface and ANativeWindow, along with surfaceNeedsRecreate()
function that determines whether the surface needs to be recreated.
The new ensureSurface() function consolidates surface creation and
recreation logic in one place.

On some Android versions and devices, onNativeWindowDestroyed is
not delivered when the app goes to the background, causing the
surface to remain bound to a destroyed window. Tracking the binding
makes recovery robust regardless of which callbacks are triggered.
@andydotxyz

Copy link
Copy Markdown
Member

This PR seems to have multiple bug fixes on it - please check what you have pushed to this branch and update accordingly.

@abakum

abakum commented Jul 12, 2026

Copy link
Copy Markdown
Author

Only 3 bugs — that's not a lot for a PR :)

@andydotxyz

Copy link
Copy Markdown
Member

When they are unrelated they belong on different PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manually overridden Android minSDK: folder selection via ACTION_OPEN_DOCUMENT_TREE fails with "specified URI is not listable

3 participants