OSDN Git Service

Fix attaching image on "new contact" screen.
authorNeel Parekh <neel@google.com>
Fri, 2 Oct 2009 17:49:22 +0000 (10:49 -0700)
committerNeel Parekh <neel@google.com>
Fri, 2 Oct 2009 18:08:03 +0000 (11:08 -0700)
Bug: 2161910
Dr. NO: TS

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

index 36c1551..e3c4340 100644 (file)
@@ -358,15 +358,13 @@ public final class EditContactActivity extends Activity
         switch (requestCode) {
             case PHOTO_PICKED_WITH_DATA: {
                 ContactEditorView requestingEditor = null;
-                if (mRawContactIdRequestingPhoto > 0) {
-                    for (int i = 0; i < mContent.getChildCount(); i++) {
-                        View childView = mContent.getChildAt(i);
-                        if (childView instanceof ContactEditorView) {
-                            ContactEditorView editor = (ContactEditorView) childView;
-                            if (editor.getRawContactId() == mRawContactIdRequestingPhoto) {
-                                requestingEditor = editor;
-                                break;
-                            }
+                for (int i = 0; i < mContent.getChildCount(); i++) {
+                    View childView = mContent.getChildAt(i);
+                    if (childView instanceof ContactEditorView) {
+                        ContactEditorView editor = (ContactEditorView) childView;
+                        if (editor.getRawContactId() == mRawContactIdRequestingPhoto) {
+                            requestingEditor = editor;
+                            break;
                         }
                     }
                 }