based on outputType option, add base64 string or file uri to output list

This commit is contained in:
Robert Abeyta
2015-05-18 14:10:37 -07:00
parent b772953ea1
commit 0a62ad125f

View File

@@ -540,8 +540,12 @@ public class MultiImageChooserActivity extends Activity implements OnItemClickLi
}
}
file = this.storeImage(bmp, file.getName());
al.add(Uri.fromFile(file).toString());
if(output == OutputType.FILE_URI) {
file = this.storeImage(bmp, file.getName());
al.add(Uri.fromFile(file).toString());
} else if (output == OutputType.BASE64_STRING){
al.add(getBase64OfImage(bmp));
}
}
return al;
} catch(IOException e) {