commit | 4c129c92cb8f7f4d2a1f5dcf69a7564d5c88fd9f | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Oct 07 13:53:39 2009 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Oct 08 08:52:50 2009 -0700 |
tree | c7631dcc1bd2da1a810664387e6a29af161def1e | |
parent | 54b3e1fce63c8f7233fff8ea6279ddd1a8982d9d [diff] |
Increment tries as we reparent to avoid looping. Fixes http://b/2173452
diff --git a/src/com/android/contacts/ui/EditContactActivity.java b/src/com/android/contacts/ui/EditContactActivity.java index 9ed3d57..3b06a48 100644 --- a/src/com/android/contacts/ui/EditContactActivity.java +++ b/src/com/android/contacts/ui/EditContactActivity.java
@@ -512,7 +512,7 @@ // Attempt to persist changes int tries = 0; Integer result = RESULT_FAILURE; - while (tries < PERSIST_TRIES) { + while (tries++ < PERSIST_TRIES) { try { // Build operations and try applying final ArrayList<ContentProviderOperation> diff = state.buildDiff();