Stop showing dialog when the Activity is already gone

Actually showDialog() is deprecated method and this whole
Activity should be rewritten using DialogFragment. This is
just for preventing unnecessary crash during automated testing

Bug: 5166487
Change-Id: I94fcabf1b916d86cdc9333f337b43dafacae4f72
1 file changed