summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMadan Ankapura <mankapur@sta.samsung.com>2010-06-24 15:55:55 -0700
committerMadan Ankapura <mankapur@sta.samsung.com>2010-06-24 15:55:55 -0700
commit39529c673a6f9885e881985c7c1c47c8a46c27de (patch)
tree91f7f2137e08538ca8ac6b007f5402757290c1ee /apps
parentd63615fa69a554b9e82336900589dfd9f3943f4e (diff)
downloadandroid_development-39529c673a6f9885e881985c7c1c47c8a46c27de.tar.gz
android_development-39529c673a6f9885e881985c7c1c47c8a46c27de.tar.bz2
android_development-39529c673a6f9885e881985c7c1c47c8a46c27de.zip
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 using the PackageInfo. Credit:Ritu Srivastava Change-Id: I9ff5a27d828d5d3836bb55101cb947f670ea5941
Diffstat (limited to 'apps')
-rw-r--r--apps/Development/src/com/android/development/PackageSummary.java2
1 files changed, 1 insertions, 1 deletions
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