Improve error log during file sharing

This commit is contained in:
Erwan Croze 2018-08-02 13:47:43 +02:00
parent b8dc62cb3c
commit d983879235
2 changed files with 2 additions and 2 deletions

View file

@ -613,7 +613,7 @@ public final class LinphoneUtils {
remoteFile.close();
} catch (IOException e) {
e.printStackTrace();
Log.e("Enable to get sharing file", e);
}
return result;

View file

@ -135,7 +135,7 @@ public class LinphoneLauncherActivity extends Activity {
if(("text/plain").equals(type) && (String)intent.getStringExtra(Intent.EXTRA_TEXT)!= null) {
stringFileShared = intent.getStringExtra(Intent.EXTRA_TEXT);
newIntent.putExtra("msgShared", stringFileShared);
}else {
} else {
fileUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
stringUriFileShared = LinphoneUtils.getFilePath(getBaseContext(), fileUri);
newIntent.putExtra("fileShared", stringUriFileShared);