Continue the animation after the data is updated.

When the data is updated, the animation is interrupted because of the original
view is replaced by the new one from the new data. We should copy the original
animation and continue.

Handles the condition when the last photo is deleted.

Also some refinement of the codes.

bug:12196441
bug:12476802

Change-Id: I2139b09bf5f958af6fa21b91e3d0c14908e1ba79
4 files changed