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

Commit 9127e458 authored by Jae Seo's avatar Jae Seo
Browse files

TIF: Enable inflating class android.media.tv.TvView on non-TV devices

Needed to pass the CTS for those devices.

Bug: 17455222
Change-Id: Ief9a76835418906d9e8e06d4e5ddc71a3370055d
parent fc81bfe3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -709,7 +709,9 @@ public final class TvInputManager {
            }
        };
        try {
            if (mService != null) {
                mService.registerCallback(mManagerCallback, mUserId);
            }
        } catch (RemoteException e) {
            Log.e(TAG, "mService.registerCallback failed: " + e);
        }
+3 −1
Original line number Diff line number Diff line
@@ -312,9 +312,11 @@ public class TvView extends ViewGroup {
            // is newly assigned for every createSession request and compared with
            // MySessionCreateCallback.this.
            mSessionCallback = new MySessionCallback(inputId, channelUri, params);
            if (mTvInputManager != null) {
                mTvInputManager.createSession(inputId, mSessionCallback, mHandler);
            }
        }
    }

    /**
     * Resets this TvView.