You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2012/06/07 22:20:55 UTC
[39/50] [abbrv] android commit: Forgot to recheck Plugin. Adding it
back
Forgot to recheck Plugin. Adding it back
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/295b9f4f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/295b9f4f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/295b9f4f
Branch: refs/heads/master
Commit: 295b9f4f5b750c9d9f854b5dbfd1e4d134a69752
Parents: 79048a5
Author: Joe Bowser <bo...@apache.org>
Authored: Tue May 15 09:36:53 2012 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Tue May 15 09:36:53 2012 -0700
----------------------------------------------------------------------
framework/src/org/apache/cordova/FileUtils.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/295b9f4f/framework/src/org/apache/cordova/FileUtils.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/FileUtils.java b/framework/src/org/apache/cordova/FileUtils.java
index 6351c2e..dc21948 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 });
}