Skip to content
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

Android: Fix GameDetailsDialog on leanback #11296

Merged
merged 1 commit into from Nov 23, 2022

Conversation

t895
Copy link
Contributor

@t895 t895 commented Nov 22, 2022

Previously the app would crash when opening the game details dialog because Material Dividers inherit from AppCompat and the leanback activity does not. This creates a new layout file with leanback-specific accommodations and code is duplicated in GameDetailsDialog to prevent inflation crashes.

I'm not happy with the amount of code I have to duplicate here, but it's the simplest fix I could think of given that I'd like to stick to data binding and keeping material components on the mobile version.

Previously the app would crash because Material Dividers inherit from AppCompat and the leanback activity does not. This creates a new layout file with leanback-specific accommodations and code is duplicated in GameDetailsDialog to prevent inflation crashes.
@JosJuice JosJuice merged commit ddf63ba into dolphin-emu:master Nov 23, 2022
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants