Fix for CB-17: WebView caching resized pictures

This commit is contained in:
macdonst 2011-11-22 05:28:40 +08:00
parent 5406d6c98f
commit 3ebfb6717c

View File

@ -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();