mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Uri to safe string
This commit is contained in:
@@ -1751,7 +1751,7 @@ public class Helper {
|
||||
String title = intent.getStringExtra(Intent.EXTRA_TITLE);
|
||||
Uri data = intent.getData();
|
||||
String type = intent.getType();
|
||||
String fullName = (data == null ? intent.toString() : data.toString());
|
||||
String fullName = (data == null ? intent.toString() : UriHelper.toSafeString(data));
|
||||
String extension = (data == null ? null : getExtension(data.getLastPathSegment()));
|
||||
|
||||
tvName.setText(title == null ? fullName : title);
|
||||
|
||||
Reference in New Issue
Block a user