mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
This commit is contained in:
commit
c56c73f250
@ -38,6 +38,11 @@ fi
|
|||||||
# update the cordova-android framework for the desired target
|
# update the cordova-android framework for the desired target
|
||||||
android update project --target $TARGET --path ./framework
|
android update project --target $TARGET --path ./framework
|
||||||
|
|
||||||
|
# Use curl to get the jar (TODO: Support Apache Mirrors)
|
||||||
|
curl -OL http://mirror.symnds.com/software/Apache//commons/codec/binaries/commons-codec-1.6-bin.zip
|
||||||
|
unzip commons-codec-1.6-bin.zip
|
||||||
|
cp commons-codec-1.6/commons-codec-1.6.jar ./framework/libs
|
||||||
|
|
||||||
# compile cordova.js and cordova.jar
|
# compile cordova.js and cordova.jar
|
||||||
cd ./framework && ant jar && cd ../
|
cd ./framework && ant jar && cd ../
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ public class FileUtils extends Plugin {
|
|||||||
* @param filePath the path to check
|
* @param filePath the path to check
|
||||||
*/
|
*/
|
||||||
private void notifyDelete(String filePath) {
|
private void notifyDelete(String filePath) {
|
||||||
String newFilePath = filePath.substring(7);
|
String newFilePath = stripFileProtocol(filePath);
|
||||||
int result = this.ctx.getContentResolver().delete(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
|
int result = this.ctx.getContentResolver().delete(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
|
||||||
MediaStore.Images.Media.DATA + " = ?",
|
MediaStore.Images.Media.DATA + " = ?",
|
||||||
new String[] {newFilePath});
|
new String[] {newFilePath});
|
||||||
|
Loading…
Reference in New Issue
Block a user