am 898004c4: Merge "Activity/provider used is restricted to the application\'s Package, but can be spread across other packages as well. A better way to construct the activity name should be by getting the substring from the fully qualified classname itself and not usi

Merge commit '898004c4b2322c8fece08944731eed9fc08a14a5' into gingerbread-plus-aosp

* commit '898004c4b2322c8fece08944731eed9fc08a14a5':
  Activity/provider used is restricted to the application's Package, but can be spread across other packages as well.
This commit is contained in:
Jean-Baptiste Queru
2010-08-16 08:24:20 -07:00
committed by Android Git Automerger

View File

@@ -251,7 +251,7 @@ public class PackageSummary extends Activity {
private final static void setItemText(Button item, PackageInfo pi, private final static void setItemText(Button item, PackageInfo pi,
String className) String className)
{ {
item.setText(className.substring(pi.packageName.length()+1)); item.setText(className.substring(className.lastIndexOf('.')+1));
} }
private final class ActivityOnClick implements View.OnClickListener private final class ActivityOnClick implements View.OnClickListener