Merge "TIF: Set the surface secure" into nyc-dev

am: 9675f16bba

* commit '9675f16bba6837840038aea92e9db5893cecd33e':
  TIF: Set the surface secure

Change-Id: Iae2496a4b761b7635c49272b0611bec7db4b9040
This commit is contained in:
Jae Seo
2016-06-06 19:58:30 +00:00
committed by android-build-merger

View File

@@ -780,6 +780,8 @@ public class TvView extends ViewGroup {
super.updateWindow(force, redrawNeeded);
relayoutSessionOverlayView();
}};
// The surface view's content should be treated as secure all the time.
mSurfaceView.setSecure(true);
mSurfaceView.getHolder().addCallback(mSurfaceHolderCallback);
if (mWindowZOrder == ZORDER_MEDIA_OVERLAY) {
mSurfaceView.setZOrderMediaOverlay(true);