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

Commit 774f6c36 authored by Ji-Hwan Lee's avatar Ji-Hwan Lee
Browse files

Add missing checks for the current session callback

Bug: 17336320
Change-Id: I4676c4d76d1ed9d22bd476319098cbfcce52cd6d
parent b730542b
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 + ",)");