Merge "Add an API check for starting preview in Jpeg callback." into gb-ub-photos-arches