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

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

Merge "TIF: Reset main TvView only for explicit reset() call" into lmp-dev

parents 4db289eb d0f00588
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ public class TvView extends ViewGroup {
                mSessionCallback.mTuneParams = params;
            }
        } else {
            reset();
            resetInternal();
            // When createSession() is called multiple times before the callback is called,
            // only the callback of the last createSession() call will be actually called back.
            // The previous callbacks will be ignored. For the logic, mSessionCallback
@@ -328,6 +328,10 @@ public class TvView extends ViewGroup {
                sMainTvView = NULL_TV_VIEW;
            }
        }
        resetInternal();
    }

    private void resetInternal() {
        if (mSession != null) {
            release();
            resetSurfaceView();