Improve error log during file sharing
This commit is contained in:
parent
b8dc62cb3c
commit
d983879235
2 changed files with 2 additions and 2 deletions
|
@ -613,7 +613,7 @@ public final class LinphoneUtils {
|
||||||
|
|
||||||
remoteFile.close();
|
remoteFile.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
Log.e("Enable to get sharing file", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -135,7 +135,7 @@ public class LinphoneLauncherActivity extends Activity {
|
||||||
if(("text/plain").equals(type) && (String)intent.getStringExtra(Intent.EXTRA_TEXT)!= null) {
|
if(("text/plain").equals(type) && (String)intent.getStringExtra(Intent.EXTRA_TEXT)!= null) {
|
||||||
stringFileShared = intent.getStringExtra(Intent.EXTRA_TEXT);
|
stringFileShared = intent.getStringExtra(Intent.EXTRA_TEXT);
|
||||||
newIntent.putExtra("msgShared", stringFileShared);
|
newIntent.putExtra("msgShared", stringFileShared);
|
||||||
}else {
|
} else {
|
||||||
fileUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
|
fileUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
|
||||||
stringUriFileShared = LinphoneUtils.getFilePath(getBaseContext(), fileUri);
|
stringUriFileShared = LinphoneUtils.getFilePath(getBaseContext(), fileUri);
|
||||||
newIntent.putExtra("fileShared", stringUriFileShared);
|
newIntent.putExtra("fileShared", stringUriFileShared);
|
||||||
|
|
Loading…
Reference in a new issue