Skip to content

Fix: Crash When Clicking on Bookmarked Locations #6080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

sonalyadav1
Copy link
Contributor

**Description **

This PR resolves the ClassCastException encountered when interacting with bookmarked locations.
Cause:
The crash was caused by an incorrect cast from FrameLayout to RelativeLayout in PlaceAdapterDelegate.kt.

Fixes #6077


CHANGES MADE

-Updated the property to be nullable to handle cases where the layout is not as expected.
-Corrected the logic to handle the layout type safely.


Tests performed

Tested {build variant, betaDebug} on {Vivo v25} with API level {34}.

video_20241225_155536_edit.mp4

@misaochan misaochan merged commit 4244373 into commons-app:main Dec 26, 2024
1 check passed
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.

[Bug]: App crashes when clicking on a bookmarked location
2 participants