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

Commit 9033bca6 authored by Ji-Hwan Lee's avatar Ji-Hwan Lee Committed by Android (Google) Code Review
Browse files

Merge "Add missing checks for the current session callback" into lmp-dev

parents eec5634f 774f6c36
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -964,6 +964,9 @@ public class TvView extends ViewGroup {

        @Override
        public void onContentBlocked(Session session, TvContentRating rating) {
            if (this != mSessionCallback) {
                return;
            }
            if (DEBUG) {
                Log.d(TAG, "onContentBlocked()");
            }
@@ -974,6 +977,9 @@ public class TvView extends ViewGroup {

        @Override
        public void onLayoutSurface(Session session, int left, int top, int right, int bottom) {
            if (this != mSessionCallback) {
                return;
            }
            if (DEBUG) {
                Log.d(TAG, "onLayoutSurface (left=" + left + ", top=" + top + ", right="
                        + right + ", bottom=" + bottom + ",)");