Adding pollcheck to check if the dialog is showing

bug: 10205558
Change-Id: I6dc6aef4cfd7a9a008315ca9aa57c563cb941f8c
1 file changed