Create a new temp file after contact photo is updated
So that subsequent photo selections (either take new photo
or choose new photo) add a new uri/bitmap pair to the cache.
In the full contact editor this happens when we bindEditors
is called after a photo is selected -- which leads to all
PhotoHandlers being recreated.
Bug 20562525
Change-Id: Id928dde5319928f72a1f9c1e038cf93e941824af
diff --git a/src/com/android/contacts/editor/CompactContactEditorFragment.java b/src/com/android/contacts/editor/CompactContactEditorFragment.java
index dee322d..2bffc6a 100644
--- a/src/com/android/contacts/editor/CompactContactEditorFragment.java
+++ b/src/com/android/contacts/editor/CompactContactEditorFragment.java
@@ -91,6 +91,10 @@
// Update the mode so the options change if user clicks the photo again
mPhotoMode = getPhotoMode();
+
+ // Re-create the photo handler so that any additional photo selections create a
+ // new temp file (and don't hit the one that was just added to the cache).
+ mPhotoHandler = createPhotoHandler();
}
@Override