diff options
author | Jae Seo <jaeseo@google.com> | 2015-06-21 20:47:06 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-21 20:47:16 +0000 |
commit | 99a242c3636bf5d2e07d645375f139a6e086711e (patch) | |
tree | 60db5926d56f2912eca847cc06557af8c2036006 /media | |
parent | 5ab0ae0e387078914457774e5c82308f3cc9b5e3 (diff) | |
parent | 17345072864b9aeb4e5535257e83e6809859ae0f (diff) | |
download | frameworks_base-99a242c3636bf5d2e07d645375f139a6e086711e.zip frameworks_base-99a242c3636bf5d2e07d645375f139a6e086711e.tar.gz frameworks_base-99a242c3636bf5d2e07d645375f139a6e086711e.tar.bz2 |
Merge "TIF: Always flush pending app-private commands when resetting TvView" into mnc-dev
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/tv/TvView.java | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/media/java/android/media/tv/TvView.java b/media/java/android/media/tv/TvView.java index e7ce1dd..d8d0bdc 100644 --- a/media/java/android/media/tv/TvView.java +++ b/media/java/android/media/tv/TvView.java @@ -337,8 +337,14 @@ public class TvView extends ViewGroup { } private void resetInternal() { + mPendingAppPrivateCommands.clear(); if (mSession != null) { - release(); + setSessionSurface(null); + removeSessionOverlayView(); + mUseRequestedSurfaceLayout = false; + mSession.release(); + mSession = null; + mSessionCallback = null; resetSurfaceView(); } } @@ -738,17 +744,6 @@ public class TvView extends ViewGroup { addView(mSurfaceView); } - private void release() { - mPendingAppPrivateCommands.clear(); - - setSessionSurface(null); - removeSessionOverlayView(); - mUseRequestedSurfaceLayout = false; - mSession.release(); - mSession = null; - mSessionCallback = null; - } - private void setSessionSurface(Surface surface) { if (mSession == null) { return; |