Uri to safe string

This commit is contained in:
M66B
2023-12-11 22:04:44 +01:00
parent c4a1384232
commit 894736ef18
3 changed files with 42 additions and 2 deletions

View File

@@ -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);