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

Commit 15e538ab authored by zhuw's avatar zhuw Committed by Arne Coucheron
Browse files

SnapdragonGallery: Fix crash show dialog when activity finished

don't show progressDialog when activity is finished

Change-Id: I846430949229f2c3992514a24876fe02ba58a924
parent 385313da
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -112,9 +112,11 @@ public class TrueScannerActs extends SimpleImageFilter {
        if (null != sActivity) {
            sActivity.runOnUiThread(new Runnable() {
                public void run() {
                    if (!sActivity.isFinishing()) {
                        mProgressDialog = ProgressDialog.show(sActivity, "", "Processing...", true, false);
                        mProgressDialog.show();
                    }
                }
            });
        }
    }