forked from github/cordova-android
Fix for CB-17: WebView caching resized pictures
This commit is contained in:
parent
5406d6c98f
commit
3ebfb6717c
@ -404,7 +404,9 @@ public class CameraLauncher extends Plugin {
|
||||
bitmap.recycle();
|
||||
bitmap = null;
|
||||
|
||||
this.success(new PluginResult(PluginResult.Status.OK, ("file://" + fileName)), this.callbackId);
|
||||
// The resized image is cached by the app in order to get around this and not have to delete you
|
||||
// application cache I'm adding the current system time to the end of the file url.
|
||||
this.success(new PluginResult(PluginResult.Status.OK, ("file://" + fileName + "?" + System.currentTimeMillis())), this.callbackId);
|
||||
System.gc();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user