Merge "TIF: Always flush pending app-private commands when resetting TvView" into mnc-dev
This commit is contained in:
@@ -337,8 +337,14 @@ public class TvView extends ViewGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void resetInternal() {
|
private void resetInternal() {
|
||||||
|
mPendingAppPrivateCommands.clear();
|
||||||
if (mSession != null) {
|
if (mSession != null) {
|
||||||
release();
|
setSessionSurface(null);
|
||||||
|
removeSessionOverlayView();
|
||||||
|
mUseRequestedSurfaceLayout = false;
|
||||||
|
mSession.release();
|
||||||
|
mSession = null;
|
||||||
|
mSessionCallback = null;
|
||||||
resetSurfaceView();
|
resetSurfaceView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -738,17 +744,6 @@ public class TvView extends ViewGroup {
|
|||||||
addView(mSurfaceView);
|
addView(mSurfaceView);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void release() {
|
|
||||||
mPendingAppPrivateCommands.clear();
|
|
||||||
|
|
||||||
setSessionSurface(null);
|
|
||||||
removeSessionOverlayView();
|
|
||||||
mUseRequestedSurfaceLayout = false;
|
|
||||||
mSession.release();
|
|
||||||
mSession = null;
|
|
||||||
mSessionCallback = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setSessionSurface(Surface surface) {
|
private void setSessionSurface(Surface surface) {
|
||||||
if (mSession == null) {
|
if (mSession == null) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user