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

SnapdragonGallery: Fix crash show dialog when activity finished

don't show progressDialog when activity is finished

Change-Id: I846430949229f2c3992514a24876fe02ba58a924
parent 385313da
......@@ -112,8 +112,10 @@ public class TrueScannerActs extends SimpleImageFilter {
if (null != sActivity) {
sActivity.runOnUiThread(new Runnable() {
public void run() {
mProgressDialog = ProgressDialog.show(sActivity, "", "Processing...", true, false);
mProgressDialog.show();
if (!sActivity.isFinishing()) {
mProgressDialog = ProgressDialog.show(sActivity, "", "Processing...", true, false);
mProgressDialog.show();
}
}
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment