Simplify DefaultDialerManager
The previous code worked with ComponentNames because it was
based off existing code for the default SMS application.
We only really need the package name however, so simplify the
code by storing and retrieving the package name directly.
Bug: 20304458
Change-Id: Icabd3a9f0f8166c105360494b601160d13767fad
diff --git a/src/com/android/server/telecom/TelecomServiceImpl.java b/src/com/android/server/telecom/TelecomServiceImpl.java
index a012e5f..8770e88 100644
--- a/src/com/android/server/telecom/TelecomServiceImpl.java
+++ b/src/com/android/server/telecom/TelecomServiceImpl.java
@@ -465,12 +465,7 @@
*/
@Override
public String getDefaultDialerPackage() {
- final ComponentName defaultDialer =
- DefaultDialerManager.getDefaultDialerApplication(mContext);
- if (defaultDialer != null) {
- return defaultDialer.getPackageName();
- }
- return null;
+ return DefaultDialerManager.getDefaultDialerApplication(mContext);
}
/**