Prevent crash when picking file from GoogleDrive
This commit is contained in:
parent
4c59844e8b
commit
3de26c02ca
2 changed files with 13 additions and 0 deletions
|
@ -613,6 +613,9 @@ public final class LinphoneUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO handle non-primary volumes
|
// TODO handle non-primary volumes
|
||||||
|
}// Docs storage
|
||||||
|
else if ("com.google.android.apps.docs.storage".equals(uri.getAuthority())) {
|
||||||
|
//Google doc not supported right now
|
||||||
}
|
}
|
||||||
// DownloadsProvider
|
// DownloadsProvider
|
||||||
else if ("com.android.providers.downloads.documents".equals(uri.getAuthority())) {
|
else if ("com.android.providers.downloads.documents".equals(uri.getAuthority())) {
|
||||||
|
|
|
@ -454,6 +454,11 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addFileToPendingList(String path) {
|
private void addFileToPendingList(String path) {
|
||||||
|
if (path == null) {
|
||||||
|
Log.e("Can't add file to pending list because it's path is null...");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
View pendingFile = mInflater.inflate(R.layout.file_upload_cell, mFilesUploadLayout, false);
|
View pendingFile = mInflater.inflate(R.layout.file_upload_cell, mFilesUploadLayout, false);
|
||||||
pendingFile.setTag(path);
|
pendingFile.setTag(path);
|
||||||
|
|
||||||
|
@ -480,6 +485,11 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addImageToPendingList(String path) {
|
private void addImageToPendingList(String path) {
|
||||||
|
if (path == null) {
|
||||||
|
Log.e("Can't add image to pending list because it's path is null...");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
View pendingImage = mInflater.inflate(R.layout.image_upload_cell, mFilesUploadLayout, false);
|
View pendingImage = mInflater.inflate(R.layout.image_upload_cell, mFilesUploadLayout, false);
|
||||||
pendingImage.setTag(path);
|
pendingImage.setTag(path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue