PopupWindow animation fixes

Calls the dismiss listener immediately, which fixes compatibility with
ListPopupWindow's global layout listener. Adjusts anchor bounds to
better match up with the laid out window position. Caches the content
view to avoid issues with setContentView(null) being called immediately
after dismiss().

Change-Id: I897caeba26ffb2e689f8face199d2ab70718a86c
1 file changed