Removed hard coded provider
This commit is contained in:
parent
da0782d213
commit
46bfdb54b3
2 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,8 @@
|
|||
|
||||
<!-- Global -->
|
||||
<string name="default_domain">sip.linphone.org</string><!-- Set the default domain used for account creation/addresses -->
|
||||
<string name="default_conference_factory_uri">sip:conference-factory@sip.linphone.org</string>
|
||||
<string name="default_conference_factory_uri">sip:conference-factory@sip.linphone.org</string>
|
||||
<string name="file_provider">org.linphone.provider</string>
|
||||
<string name="sync_account_type">org.linphone</string> <!-- Change package ! -->
|
||||
<string name="sync_mimetype">vnd.android.cursor.item/org.linphone.profile</string> <!-- Change package, leave .profile at the end. Also change res/xml/contacts.xml ! -->
|
||||
<string name="rls_uri">sip:rls@sip.linphone.org</string>
|
||||
|
|
|
@ -489,13 +489,13 @@ public class ChatEventsAdapter extends SelectableAdapter<ChatBubbleViewHolder> {
|
|||
if (path.startsWith("file://")) {
|
||||
path = path.substring("file://".length());
|
||||
file = new File(path);
|
||||
contentUri = FileProvider.getUriForFile(mContext, "org.linphone.provider", file);
|
||||
contentUri = FileProvider.getUriForFile(mContext, mContext.getResources().getString(R.string.file_provider), file);
|
||||
} else if (path.startsWith("content://")) {
|
||||
contentUri = Uri.parse(path);
|
||||
} else {
|
||||
file = new File(path);
|
||||
try {
|
||||
contentUri = FileProvider.getUriForFile(mContext, "org.linphone.provider", file);
|
||||
contentUri = FileProvider.getUriForFile(mContext, mContext.getResources().getString(R.string.file_provider), file);
|
||||
} catch (Exception e) {
|
||||
contentUri = Uri.parse(path);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue