AI 143104: Add long press to groups in contact view activity, which takes the user to
edit activity.
BUG=1241747
Automated import of CL 143104
diff --git a/src/com/android/contacts/ViewContactActivity.java b/src/com/android/contacts/ViewContactActivity.java
index b66811f..ddacbe0 100644
--- a/src/com/android/contacts/ViewContactActivity.java
+++ b/src/com/android/contacts/ViewContactActivity.java
@@ -398,6 +398,11 @@
menu.add(0, 0, 0, R.string.menu_viewAddress).setIntent(entry.intent);
break;
}
+
+ case ContactEntryAdapter.Entry.KIND_GROUP: {
+ menu.add(0, 0, 0, R.string.menu_viewGroup).setIntent(entry.intent);
+ break;
+ }
}
}
@@ -886,6 +891,7 @@
entry.kind = ContactEntryAdapter.Entry.KIND_GROUP;
entry.label = getString(R.string.label_groups);
entry.data = sb.toString();
+ entry.intent = new Intent(Intent.ACTION_EDIT, mUri);
// TODO: Add an icon for the groups item.