Commit 9b271b90 authored by Karel Slaný's avatar Karel Slaný

Fixed a typo.

parent 3a505301
...@@ -84,7 +84,7 @@ bool AndroidIO::createEmail(const QString &subject, const QString &to, ...@@ -84,7 +84,7 @@ bool AndroidIO::createEmail(const QString &subject, const QString &to,
QAndroidJniObject jsBody = QAndroidJniObject::fromString(body); QAndroidJniObject jsBody = QAndroidJniObject::fromString(body);
QJsonArray arr = QJsonArray::fromStringList(filePaths); QJsonArray arr = QJsonArray::fromStringList(filePaths);
QJsonObject jsonObj; QJsonObject jsonObj;
jsonObj["attachmetns"] = arr; jsonObj[QLatin1String("attachments")] = arr;
QJsonDocument doc(jsonObj); QJsonDocument doc(jsonObj);
QAndroidJniObject jsJsonPathList = QAndroidJniObject::fromString(doc.toJson(QJsonDocument::Compact)); QAndroidJniObject jsJsonPathList = QAndroidJniObject::fromString(doc.toJson(QJsonDocument::Compact));
......
...@@ -172,7 +172,7 @@ public class QFileProvider ...@@ -172,7 +172,7 @@ public class QFileProvider
ArrayList<Uri> uris = new ArrayList<Uri>(); ArrayList<Uri> uris = new ArrayList<Uri>();
try { try {
JSONObject jsonObj = new JSONObject(filePathsJson); JSONObject jsonObj = new JSONObject(filePathsJson);
JSONArray attachments = jsonObj.getJSONArray("attachmetns"); JSONArray attachments = jsonObj.getJSONArray("attachments");
for (int i=0; i<attachments.length(); i++) { for (int i=0; i<attachments.length(); i++) {
File attachment = new File(attachments.getString(i)); File attachment = new File(attachments.getString(i));
if (!attachment.exists() || !attachment.canRead()) { if (!attachment.exists() || !attachment.canRead()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment