OSDN Git Service

Fixes bug where delete option from Menu list is disabled in Contact view mode.
authorMegha Joshi <mjoshi@google.com>
Fri, 2 Oct 2009 00:31:49 +0000 (17:31 -0700)
committerMegha Joshi <mjoshi@google.com>
Sat, 3 Oct 2009 06:59:29 +0000 (23:59 -0700)
commitc508bd8c0d697bd7e8cf62e025ef32f3f2169d9a
tree95667ead08ab49318d724e058f4fc146564dffdf
parentf042df95fa3d3e0560ceec93c4c66e2d3f6f3224
Fixes bug where delete option from Menu list is disabled in Contact view mode.
Bug was caused by the count increment logic being removed in the next submitted change
https://android-git.corp.google.com/w/?p=platform/packages/apps/Contacts.git;a=commit;h=df18120ed2c37a45eb47e39c4da0c8e3b6eb335c
Disabled menu was removed in some other subsequent change, so adding dialog for the case when writable contacts = 0.

Changes delete contact bebavior in EditContactActivity to be same
ViewContactActivity.

Updates dialog message for readonly contact deletion.

bug 2161222
Dr No : TS
Reviewed By: dplotnikov, timsullivan
res/values/ids.xml
res/values/strings.xml
src/com/android/contacts/ContactsListActivity.java
src/com/android/contacts/ViewContactActivity.java
src/com/android/contacts/ui/EditContactActivity.java