Fix PhoneAccountPreferences not being saved

* Add a dummy PhoneAccountHandle, which is used to differentiate
between the user selecting a null PhoneAccountHandle, and no
preference being present at all.

* Refactor getDefaultOutgoingPhoneAccount slightly and add
getUserSelectedOutgoingPhoneAccount. getUserSelectedOutgoingPhoneAccount
is only used by PhoneAccountPreferencesActivity to determine the user's
true selection. getDefaultOutgoingPhoneAccount will continue to behave
the same, and is the method that will be continue to be used to determine
the correct default PhoneAccount to use.

Bug: 17140770

Change-Id: I5f5b4940d3babde05d563024ee9618d5d65204ea
2 files changed
tree: d966eff6d8fe704e99ec2249e19718ad87f88a87
  1. libs/
  2. res/
  3. src/
  4. tests/
  5. .classpath
  6. .project
  7. Android.mk
  8. AndroidManifest.xml