Fix NPE when VvmNetworkRequest failed.

Previously when VvmNetworkReust.getNetwork() fails, it will return a
null Network, causing NPE and terminates the task.
ACTION_SYNC_VOICEMAIL which should attempt activation on unactivated
accounts also fails to do so because only activated accounts are
registered as a voicemail source.

After this CL VvmNetworkReust.getNetwork() will throw a
RequestFailedException instead of null. All callers will fail the task
to schedule a retry.

Sync task, which is triggered by ACTION_SYNC_VOICEMAIL will scan
through all phone accounts for accounts that have visual voicemail
enabled but is not activated, and retry activation for them.

The CONFIG_ACTIVATING event also wipe the state in data and
notification channel to remove errors from the last try.

Change-Id: Id376f10ff463c722db2fb1a9ad58d16a334f0701
Fixes: 30229368
Fixes: 30228947
5 files changed