title: onSurfaceTextureAvailable called when phone is locked
body: <p>I am creating a custom video view by extending the <code>TextureView</code> and setting <code>SurfaceTextureListener</code> on it. </p>
  
  <p>In some phones(Nexus 6P), when i lock the phone, both <code>onSurfaceTextureDestroyed</code> and <code>onSurfaceTextureAvailable</code> callback is given. That surface gets destroyed and immediately created. While the proper behaviour is that we should get <code>onSurfaceTextureAvailable</code>  only when we unlock  the phone. </p>
  
  <p>Also, when the phone will be unlocked in these cases, we will never get <code>onSurfaceTextureAvailable</code> again because it was already given. </p>
  
  <p>So any idea why this should be happening? My use-case is that i want to pause the <code>MediaPlayer</code> when the device is locked and then start it again when the device is unlocked. Due to the above buggy behaviour in Nexus 6P, the media player pauses momentarily when device is locked and then it starts again due to <code>onSurfaceTextureAvailable</code> given.</p>