Skip to content

Fix search crash on API 32 and older - #796

Open
Pawloland wants to merge 3 commits into
tailscale:mainfrom
Pawloland:search_fix
Open

Fix search crash on API 32 and older#796
Pawloland wants to merge 3 commits into
tailscale:mainfrom
Pawloland:search_fix

Conversation

@Pawloland

Copy link
Copy Markdown
Contributor

It should fix https://github.com/tailscale/corp/issues/27375, but I don't have access to it, so I didn't mention it in the commit message. This commit basically fixes a crash that prevented the search function from working on older Android versions, like Android 11.

16:35:00.336  E  FATAL EXCEPTION: main
Process: com.tailscale.ipn, PID: 22578
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/window/OnBackInvokedCallback

Signed-off-by: Pawloland <59684145+Pawloland@users.noreply.github.com>
@Pawloland

Copy link
Copy Markdown
Contributor Author

@kari-ts I hate to be that guy, but is there any hope of merging it?

# Conflicts:
#	android/src/main/java/com/tailscale/ipn/ui/view/SearchView.kt
@Pawloland

Copy link
Copy Markdown
Contributor Author

@bradfitz Also fixed merge conflicts, so it can also be merged

Signed-off-by: Pawloland <59684145+Pawloland@users.noreply.github.com>
@kari-ts

kari-ts commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the fix! Sorry for the delay in reviewing. Could you please rebase onto current main and keep just the compatibility fix instead of merging this as is? It looks like there is merge conflict resolution that is no longer relevant (eg bringing in older SearchView implementation). Thanks again for helping us improve tailscale-android

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants