Commit d8fc87e0 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Clear identity when deleting scanned entry.

am: 01dee865

Change-Id: I102eaec3fbc0997bf62aff260efabf412082a118
parents 32fcc17e 01dee865
......@@ -1229,8 +1229,13 @@ public final class DownloadProvider extends ContentProvider {
final String mediaUri = cursor.getString(2);
if (!TextUtils.isEmpty(mediaUri)) {
getContext().getContentResolver().delete(Uri.parse(mediaUri), null,
null);
final long token = Binder.clearCallingIdentity();
try {
getContext().getContentResolver().delete(Uri.parse(mediaUri), null,
null);
} finally {
Binder.restoreCallingIdentity(token);
}
}
}
}
......
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