Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a151a0a authored by Jae Seo's avatar Jae Seo
Browse files

TIF: Allow undefined reasons to be passed by notifyVideoUnavailable

Bug: 26819129
Change-Id: Ia3cbc8183b08e7431276795f74fcc6701de0a238
parent d2454432
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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