commit | 6e99c39b45d87c84a64a201efcde5fc5e6b4bb61 | [log] [tgz] |
---|---|---|
author | Daisuke Miyakawa <dmiyakawa@google.com> | Fri Aug 26 09:59:06 2011 -0700 |
committer | Daisuke Miyakawa <dmiyakawa@google.com> | Fri Aug 26 09:59:06 2011 -0700 |
tree | e3b5a4f6327407706caea73841e15c96902873fe | |
parent | 8aeccf6618888aa52f1ba4ad0c7e876f75f6776d [diff] |
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
diff --git a/src/com/android/contacts/vcard/ImportVCardActivity.java b/src/com/android/contacts/vcard/ImportVCardActivity.java index 2baa9cb..054e018 100644 --- a/src/com/android/contacts/vcard/ImportVCardActivity.java +++ b/src/com/android/contacts/vcard/ImportVCardActivity.java
@@ -170,7 +170,9 @@ } @Override public void run() { - showDialog(mResId); + if (!isFinishing()) { + showDialog(mResId); + } } }