title: Media Projection's VirtualDisplay object is destroyed on orientation change
body: <p>I am using google's <a href="https://github.com/googlesamples/android-ScreenCapture" rel="nofollow noreferrer">sample project</a> on Media Projection API. what I observe is that every time screen orientation changes the <code>VirtualDisplay</code> object returned as</p>
  
  <pre><code>mVirtualDisplay = mMediaProjection.createVirtualDisplay("ScreenCapture",
                  mSurfaceView.getWidth(), mSurfaceView.getHeight(), mScreenDensity,
                  DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR,
                  mSurface, null, null);
  </code></pre>
  
  <p>is destroyed (set to <code>null</code>) and I have to restart the screen capture. I understand that this is perhaps required due to change of screen dimensions, but I was hoping there's a away to avoid destroying this object and merely <strong>updating</strong> it so the screen capture only stops when stop button is pressed. Obviously one can <strong>restart</strong> the screen capture programmatically after orientation change, but I'd rather not do that. Am I being too optimistic here?</p>