onActivityResult is working as intended.