aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2012-11-15 23:56:40 +0100
committerJorge Ruesga <jorge@ruesga.com>2012-11-15 23:56:40 +0100
commit467118952ad95f800ec3f2be753ae59e8177fd4e (patch)
tree6c7d09801c1f17e2e033e1b03f1fd669a81731db
parentc5ad23bdb34051cb26429cade8f4e97cd8186aaa (diff)
downloadandroid_packages_apps_CMFileManager-467118952ad95f800ec3f2be753ae59e8177fd4e.tar.gz
android_packages_apps_CMFileManager-467118952ad95f800ec3f2be753ae59e8177fd4e.tar.bz2
android_packages_apps_CMFileManager-467118952ad95f800ec3f2be753ae59e8177fd4e.zip
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
-rw-r--r--src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java b/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
index be0533b7..004719b0 100644
--- a/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
+++ b/src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
@@ -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();
@@ -324,4 +324,4 @@ public final class IntentsActionPolicy extends ActionsPolicy {
return intents;
}
-} \ No newline at end of file
+}