add polling check for focus / dialog

bug: 9208067
Change-Id: I54bb32f968df192ba2bc208d12211196f331937c
2 files changed