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 ATV on API 28+ #8720

Merged
merged 1 commit into from Apr 2, 2020
Merged

Android: Fix ATV on API 28+ #8720

merged 1 commit into from Apr 2, 2020

Conversation

webgeek1234
Copy link

This should fix #11944. But as I cannot get the gradle config in the project to cooperate with the android-sdk on my dev machine, I'm going to have to rely on the pr builder to test.

@webgeek1234
Copy link
Author

Or... apparently I can't even do that. Can someone manually trigger the build or am I between a rock and a hard place here?

@webgeek1234
Copy link
Author

Nope, this isn't enough. It gives a different error, but still appcompat related. Asking around to see if I can find someone that understands this stuff.

@webgeek1234 webgeek1234 changed the title Android: Fix TvMainActivity on API 28+ Android: Fix ATV on API 28+ Apr 1, 2020
@webgeek1234
Copy link
Author

So, this is getting more fun. Looks like the analytics alert dialog usage fails on atv because it uses appcompat, which isn't normally usable on leanback.

This fixes a crash on ATV devices, because the the AlertDialog is
from the appcompat class, but the theme derived from the parent
view on ATV devices isn't from AppCompat.
@webgeek1234
Copy link
Author

This revision is verified working on a SHIELD Android TV running Android 9.0.

@javelinanddart
Copy link
Contributor

Since there's no CLA of any kind, just wanted to put this here:

I accept the use of this code in this project and the licensing that comes with it.

@JosJuice
Copy link
Member

JosJuice commented Apr 2, 2020

Ah, so the problem is when showing the alert... I see. I was assuming that it happened on activity launch all this time.

I'll do a quick merge of this and then amend PR #8718 to make the analytics alert use the theme defined in that PR (which also is an AppCompat theme). Thanks for fixing the issue!

@JosJuice JosJuice merged commit 4ff8559 into dolphin-emu:master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants