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
where appropriate.
- Properly hook up the tone sounds for dialing
- Remove unused code

Test: connected phone via bluetooth, made some calls, dialed number,
ensure no crashes
Change-Id: Ib70367a970b09abb1fcb2621f03f940c31e92468
8 files changed
tree: 7fac2a84a191fa7e7dfb9d6b316718274fa268cc
  2. AndroidManifest.xml
  3. res/
  4. src/