From 295b9f4f5b750c9d9f854b5dbfd1e4d134a69752 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 15 May 2012 09:36:53 -0700 Subject: [PATCH] Forgot to recheck Plugin. Adding it back --- framework/src/org/apache/cordova/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/FileUtils.java b/framework/src/org/apache/cordova/FileUtils.java index 6351c2e9..dc219488 100755 --- a/framework/src/org/apache/cordova/FileUtils.java +++ b/framework/src/org/apache/cordova/FileUtils.java @@ -224,7 +224,7 @@ public class FileUtils extends Plugin { */ private void notifyDelete(String filePath) { String newFilePath = stripFileProtocol(filePath); - int result = this.ctx.getContentResolver().delete(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, + int result = this.ctx.getActivity().getContentResolver().delete(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, MediaStore.Images.Media.DATA + " = ?", new String[] { filePath }); }