Closing popup menus on rotation.

On rotation, popup menu move to a strange location at the side of the screen.
Now, I'm just closing popup on rotation.

We may want to close the menu (async process) during any stage of creating a
menu (async process too). To take all race conditions into account, I've made
some changes in menu creation, and openness detection logic.

Bug: 20024603
Change-Id: I152d293d992fcd71ffa6e8c4909b9de2b8080eb8
1 file changed