aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/android.widget.LinearLayout.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/gscripts/android.widget.LinearLayout.groovy')
-rwxr-xr-xeclipse/plugins/com.android.ide.eclipse.adt/gscripts/android.widget.LinearLayout.groovy4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/android.widget.LinearLayout.groovy b/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/android.widget.LinearLayout.groovy
index 48acefe..420f380 100755
--- a/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/android.widget.LinearLayout.groovy
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/android.widget.LinearLayout.groovy
@@ -163,8 +163,8 @@ public class AndroidWidgetLinearLayoutRule extends BaseLayout {
targetNode.debugPrintf("Linear.drop: add ${fqcn} at position ${insert_pos}");
// Get the last component of the FQCN (e.g. "android.view.Button" => "Button")
- String name = getFqcn();
- name = name[name.indexOf(".")+1 .. name.length()-1];
+ String name = fqcn;
+ name = name[name.lastIndexOf(".")+1 .. name.length()-1];
targetNode.editXml("Add ${name} to LinearLayout") {
INode e = targetNode.insertChildAt(fqcn, insert_pos);