Merge "TIF: Allow undefined reasons to be passed by notifyVideoUnavailable"

This commit is contained in:
Jae Seo
2016-01-29 05:04:30 +00:00
committed by Android (Google) Code Review

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