Clean up Dialer code.
- Clean up the use of fragments. Create newInstance() methods that will
set the appropriate variables via arguments.
- Ensure that TelecomActivity does not hold onto Fragment instances as
this could lead to wrong lifecycle events being triggered.
- Restructure OngoingCallFragment so that methods are more concise
- Switch to using onStop/onStart in TelecomActivity to handle
- Remove the usage of commitAllowingStateLoss. Use commitNow/commit
- Properly hook up the tone sounds for dialing
- Remove unused code
Test: connected phone via bluetooth, made some calls, dialed number,
ensure no crashes
8 files changed