TIF: Allow undefined reasons to be passed by notifyVideoUnavailable
Bug: 26819129 Change-Id: Ia3cbc8183b08e7431276795f74fcc6701de0a238
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user