Layout the window to be displayed if it would be resized

This patch fixes an issue which caused the resumed app to get the
wrong insets at first.

https://code.google.com/p/android/issues/detail?id=120421

Change-Id: I38c58121465372d1d66a7a98e386b0396d7d0f89
1 file changed