Simplification

This commit is contained in:
M66B
2023-12-12 12:33:01 +01:00
parent d445a265d8
commit 6e5c1086a8
3 changed files with 2 additions and 42 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() : UriHelper.toSafeString(data));
String fullName = (data == null ? intent.toString() : data.getLastPathSegment());
String extension = (data == null ? null : getExtension(data.getLastPathSegment()));
tvName.setText(title == null ? fullName : title);