diff --git a/apps/Development/src/com/android/development/PackageSummary.java b/apps/Development/src/com/android/development/PackageSummary.java index 58ab0f7f6..d621d4e67 100644 --- a/apps/Development/src/com/android/development/PackageSummary.java +++ b/apps/Development/src/com/android/development/PackageSummary.java @@ -251,7 +251,7 @@ public class PackageSummary extends Activity { private final static void setItemText(Button item, PackageInfo pi, String className) { - item.setText(className.substring(pi.packageName.length()+1)); + item.setText(className.substring(className.lastIndexOf('.')+1)); } private final class ActivityOnClick implements View.OnClickListener