Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c88f80d3 authored by Shylender Gaddamwar's avatar Shylender Gaddamwar
Browse files

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
parent 24b8c749
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();
            }
        }
    }