TIF: Allow undefined reasons to be passed by notifyVideoUnavailable

Bug: 26819129
Change-Id: Ia3cbc8183b08e7431276795f74fcc6701de0a238
This commit is contained in:
Jae Seo
2016-01-27 20:58:08 -08:00
parent d24544322f
commit 8a151a0a21

View File

@@ -525,7 +525,7 @@ public abstract class TvInputService extends Service {
public void notifyVideoUnavailable(final int reason) {
if (reason < TvInputManager.VIDEO_UNAVAILABLE_REASON_START
|| reason > TvInputManager.VIDEO_UNAVAILABLE_REASON_END) {
throw new IllegalArgumentException("Unknown reason: " + reason);
Log.e(TAG, "notifyVideoUnavailable - unknown reason: " + reason);
}
executeOrPostRunnableOnMainThread(new Runnable() {
@MainThread