Skip to content

Commit a0284ef

Browse files
committed
vivo file exists when inhabited
1 parent 6cf3a6e commit a0284ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/com/emj365/plugins/AudioRecorderAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public void run() {
230230

231231
private JSONObject composeCallback() throws JSONException {
232232
File f = new File(outputFile);
233-
if(f.exists())
233+
if(f.exists() && f.length() > 0)
234234
{
235235
String json = "{ path: '" + outputFile + "', duration: " + duration + " }";
236236
return new JSONObject(json);

0 commit comments

Comments
 (0)