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

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

TIF: Reset main TvView only for explicit reset() call

Or, do not reset when it's called internaly while tuning.

Bug: 17269010
Change-Id: I3447ef0e628c066f71eee5a1416347fa6c721504
parent 359404c7
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();