commit | 40eade14bb87d24903588de04449fdfe2e1795cb | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Queru <jbq@google.com> | Thu Dec 02 07:55:02 2010 -0800 |
committer | Jean-Baptiste Queru <jbq@google.com> | Thu Dec 02 07:55:06 2010 -0800 |
tree | 22cf7f66ad807234c28cf352552e9a7e50cfb5ad | |
parent | 077bc4ac019ad33abd613448e11d3ad501218991 [diff] | |
parent | e1de3f390e7be3f82fa5e3e5bf6d6c8cc8414091 [diff] |
Merge from open-source master Change-Id: Ie25bbfbf12fa8902d9ba82cf2d4ed4c60d439e39
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index 9b8b0ac..46fa114 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java
@@ -341,9 +341,11 @@ if (nonLocalized != null) { return nonLocalized.toString(); } - Resources r = getResources(pii); - if (r != null) { - return r.getString(res); + if (res != 0) { + Resources r = getResources(pii); + if (r != null) { + return r.getString(res); + } } return null; }