Fix issue with file transfer from app.
This commit is contained in:
parent
ffbe398ce8
commit
bfc115a539
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
|||
if (LinphoneUtils.isExtensionImage(fileToUploadPath)) {
|
||||
addImageToPendingList(fileToUploadPath);
|
||||
} else {
|
||||
if (fileToUploadPath.startsWith("content://")) {
|
||||
if (fileToUploadPath.startsWith("content://") || fileToUploadPath.startsWith("file://")) {
|
||||
fileToUploadPath = LinphoneUtils.getFilePath(this.getActivity().getApplicationContext(), Uri.parse(fileToUploadPath));
|
||||
} else if (fileToUploadPath.contains("com.android.contacts/contacts/")) {
|
||||
fileToUploadPath = LinphoneUtils.getCVSPathFromLookupUri(fileToUploadPath).toString();
|
||||
|
|
Loading…
Reference in a new issue