commit | 2962187a8eb68924a0d52696e033f99c5bb12cb4 | [log] [tgz] |
---|---|---|
author | Daniel Lehmann <lehmannd@google.com> | Tue Oct 12 15:38:04 2010 -0700 |
committer | Daniel Lehmann <lehmannd@google.com> | Tue Oct 12 15:38:04 2010 -0700 |
tree | 017834651e4cd78b5291e1c567396827288f6055 | |
parent | 0a66bcb8c2c61205decc4d5add9486e7d2d2faf7 [diff] |
Fix index for Add Information button Bug:3090526 Change-Id: Ia6b5d93322c3bb1438e76d0f17b7d1e85e1c06af
diff --git a/src/com/android/contacts/ui/widget/ContactEditorView.java b/src/com/android/contacts/ui/widget/ContactEditorView.java index 9b3d686..46e071a 100644 --- a/src/com/android/contacts/ui/widget/ContactEditorView.java +++ b/src/com/android/contacts/ui/widget/ContactEditorView.java
@@ -254,7 +254,7 @@ if (!sectionView.getKind().isList && sectionView.getEditorCount() != 0) { continue; } - menu.add(Menu.NONE, i, Menu.NONE, sectionView.getTitle()); + menu.add(Menu.NONE, fields.size(), Menu.NONE, sectionView.getTitle()); fields.add(sectionView); } }