Fix avatar picker issues relating to screen rotation.

This fixes two issues relating to rotation:

- in the avatar picker, the done button becomes deactivated and
  does not reactivate after screen rotation

- from the profile dialog, if an image has been chosen, it does
  not get applied if the device is rotated.

Bug: 231922829
Bug: 231923131
Test: run through repro steps and confirm issues do not occur
Change-Id: I3dfc4016012b690a6547f7c7eb70c88cc236d7d9
3 files changed