Fix for managed-profile provisioning UI state not updating correctly.
Multiple fixes included to achieve this:
* Fixes to ProfileOwnerProvisioningActivity:
* Adjustments to ProfileOwnerProvisioningActivity so that
cancellation and error cases are handled distinctly.
* Rework of ProfileOwnerProvisioningService state-management and
error handling to be more robust:
* Switch from three variables (mDone, mCancelInFuture and
mLastErrorMessage) determining process state to one with more
explicit state definition, and hopefully clearer semantics.
* Ensure that already handled errors under in
RunnerTask.doInBackground() cause the provisioning process to
fail-fast.
* Ensure that other unhandled exceptions are caught and update
the provisioning status and UI appropriately.
Bug: 18584465
Change-Id: Ic56c74eb061c35e1a8ce133c4f9f5f001596d5e7
2 files changed