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: More robust check for whether to sync channels #8598

Merged
merged 1 commit into from
Mar 16, 2020

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Feb 1, 2020

This changes channel syncing to happen when the operating system is Android TV rather than when TvMainActivity is launched. (You can run TvMainActivity on a phone by specifying a launch activity manually in Android Studio, which I do sometimes for testing purposes. Without this change, you get an exception when channel syncing runs.)

I have tested this on my phone but not on Android TV.

This changes channel syncing to happen when the operating system is
Android TV rather than when TvMainActivity is launched. (You can run
TvMainActivity on a phone by specifying a launch activity manually
in Android Studio, which I do sometimes for testing purposes. Without
this change, you get an exception when channel syncing runs.)
@leoetlino
Copy link
Member

Any reason you moved it out of TvMainActivity instead of just adding the "is Android TV" check there? (I'm not familiar with the Android codebase ^^)

@JosJuice
Copy link
Member Author

This way, the channels will be synced if you launch the non-TV activity on a TV device, if you would like to do that for some reason.

@leoetlino
Copy link
Member

Ohh, that makes sense. This looks like a pretty safe change then...

@leoetlino leoetlino merged commit d408538 into dolphin-emu:master Mar 16, 2020
@JosJuice JosJuice deleted the channel-sync-android-tv branch March 16, 2020 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants