Skip to content

Commit

Permalink
Merge pull request #3795 from TeamAmaze/shortcut-label-fix
Browse files Browse the repository at this point in the history
Fixes #3790
  • Loading branch information
VishalNehra authored May 2, 2023
2 parents ae6bfa4 + d853c66 commit 40f8d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/amaze/filemanager/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ public static void addShortcut(
.setActivity(componentName)
.setIcon(IconCompat.createWithResource(context, R.mipmap.ic_launcher))
.setIntent(shortcutIntent)
.setLongLabel(path.desc)
.setShortLabel(new File(path.desc).getName())
.setLongLabel(path.title)
.setShortLabel(path.title)
.build();

ShortcutManagerCompat.requestPinShortcut(context, info, null);
Expand Down

0 comments on commit 40f8d6f

Please sign in to comment.