commit | d3d789992f96e4598521a27f085d185044ec7cee | [log] [tgz] |
---|---|---|
author | Seth Raphael <magicseth@google.com> | Wed Apr 02 14:43:39 2014 -0700 |
committer | Seth Raphael <magicseth@google.com> | Wed Apr 02 14:49:59 2014 -0700 |
tree | 1d1884fc2f1f204d503663fd384291bf045ac74c | |
parent | 59efb9af8340a5e3500037b23fb3ac16011a1c7e [diff] |
Avoid a race condition causing dup'd images. When a session is finished, it is written to the media store. We now have a listener looking for new images in the media store. If that happens to fire before the session manager has updated the filmstrip, the photo ends up being added twice. Now, the listener checks to see if it is a photo already being handled by a session Bug: 13644124 Change-Id: I8a3c4a161ad0c326d9295f6714f6c6cbbcc6764e