Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac48ce4d authored by Walter Jang's avatar Walter Jang
Browse files

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
parent 85001f02
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -91,6 +91,10 @@ public class CompactContactEditorFragment extends ContactEditorBaseFragment impl

                // 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