Merge "Capture screenshot for activity when canceling rotation" into main