Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46711895 authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

CMFileManager: Fix invalid resource on create shortcut

Resource must be drawable and not string. Otherwise the resource is not found
and shortcut is not created.
activities

Change-Id: I6f526b2e8ca4458e6fa8b1bd80667e153f664cec
parent c5ad23bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -265,7 +265,7 @@ public final class IntentsActionPolicy extends ActionsPolicy {
            String resid = MimeTypeHelper.getIcon(ctx, fso);
            int dwid =
                    ResourcesHelper.getIdentifier(
                            ctx.getResources(), "string", resid); //$NON-NLS-1$
                            ctx.getResources(), "drawable", resid); //$NON-NLS-1$

            // The intent to send to broadcast for register the shortcut intent
            Intent intent = new Intent();