diff options
author | Shylender Gaddamwar <c_shylen@quicinc.com> | 2010-03-29 17:17:47 -0700 |
---|---|---|
committer | Shylender Gaddamwar <c_shylen@quicinc.com> | 2010-03-29 17:17:47 -0700 |
commit | c88f80d3c5b2d276bf32b455555cf17047693444 (patch) | |
tree | 2dc4cd89836de40cc1d04abd821c39964ed62e08 | |
parent | 24b8c74925e7457a7dffc3052ec85ceb214b4675 (diff) | |
download | packages_apps_Contacts-c88f80d3c5b2d276bf32b455555cf17047693444.tar.gz packages_apps_Contacts-c88f80d3c5b2d276bf32b455555cf17047693444.tar.bz2 packages_apps_Contacts-c88f80d3c5b2d276bf32b455555cf17047693444.zip |
Fix "Acore" crash when exporting contacts to SDCard.
On Export confirmation (ExportConfirmationListener::onClick function)
start the ActualExportThread after the progress dialog window pop's up.
ActualExportThread::onCreateDialog instantiates ProgressDialog class,
the thread start (run) function access mProgressDialog methods.
since the thread started before the OnCreateDialog , the mProgressDialog
object is null , Hence the Exception is thrown.
Change-Id: Ia23e494535b7b7bd3066cbd418aff899c5e20825
CRs-Fixed:232123
-rw-r--r-- | src/com/android/contacts/ExportVCardActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/contacts/ExportVCardActivity.java b/src/com/android/contacts/ExportVCardActivity.java index baf2371d9..ea3b1d90c 100644 --- a/src/com/android/contacts/ExportVCardActivity.java +++ b/src/com/android/contacts/ExportVCardActivity.java @@ -102,8 +102,8 @@ public class ExportVCardActivity extends Activity { public void onClick(DialogInterface dialog, int which) { if (which == DialogInterface.BUTTON_POSITIVE) { mActualExportThread = new ActualExportThread(mFileName); - mActualExportThread.start(); showDialog(R.id.dialog_exporting_vcard); + mActualExportThread.start(); } } } @@ -451,4 +451,4 @@ public class ExportVCardActivity extends Activity { public String getErrorReason() { return mErrorReason; } -}
\ No newline at end of file +} |