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

Commit 2464d771 authored by mqi's avatar mqi Committed by Linux Build Service Account
Browse files

SystemUI:systemui crash when moving data.

    Make a screenshot,then change the sdcard to intrenal
    storage,when moving data to it the delete the screenshot
    make systemui crash.

    Data UIR is not exit,can't be delete,throw the exception.

    Change-Id: Id17a59ee0f4e4d87db316d6debceb75e35a0af3b
    CRs-Fixed: 1008698

Change-Id: I6e6cbcf4b7808cde5a3d5633da69f9d61b8bf859
parent 38613cfc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -385,7 +385,11 @@ class DeleteImageInBackgroundTask extends AsyncTask<Uri, Void, Void> {

        Uri screenshotUri = params[0];
        ContentResolver resolver = mContext.getContentResolver();
        try{
            resolver.delete(screenshotUri, null, null);
        } catch (UnsupportedOperationException e) {
            e.printStackTrace();
        }
        return null;
    }
}