Eat all exceptions from attempting to start ACTION_REQUEST_CHANNEL_BROWSABLE

Fixes #1302
This commit is contained in:
Cameron Gutman 2024-01-19 20:59:56 -06:00
parent 6ff37a17ec
commit fcd27b48b2

View File

@ -53,7 +53,11 @@ public class TvChannelHelper {
intent.putExtra(TvContract.EXTRA_CHANNEL_ID, getChannelId(computer.uuid));
try {
context.startActivityForResult(intent, 0);
} catch (ActivityNotFoundException e) {
} catch (Exception ignored) {
// ActivityNotFoundException is the only officially documented
// exception that can result from this call. However some buggy
// devices throw others.
// See https://github.com/moonlight-stream/moonlight-android/issues/1302
}
}
}