OSDN Git Service

Increment tries as we reparent to avoid looping.
authorJeff Sharkey <jsharkey@android.com>
Wed, 7 Oct 2009 20:53:39 +0000 (13:53 -0700)
committerJeff Sharkey <jsharkey@android.com>
Thu, 8 Oct 2009 15:52:50 +0000 (08:52 -0700)
Fixes http://b/2173452

src/com/android/contacts/ui/EditContactActivity.java

index 9ed3d57..3b06a48 100644 (file)
@@ -512,7 +512,7 @@ public final class EditContactActivity extends Activity
             // 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();