summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Albert <aalbert@google.com>2013-08-27 21:32:08 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-27 21:32:08 +0000
commit70a87fcd5478054a7b53e372485cbe9a9b621a15 (patch)
tree465ec286d28fbc84ff58f91893bd87aa8c189bc1
parent0baa98b5163f83a715b37e3cffe1488ac88ab049 (diff)
parent05de701306a4986e91a9b2b2eed3bce71d6d9e6f (diff)
Merge "Support Extended Directories" into klp-dev
-rw-r--r--AndroidManifest.xml1
-rw-r--r--src/com/android/dialer/DialerApplication.java16
-rw-r--r--src/com/android/dialer/SearchFragment.java4
3 files changed, 18 insertions, 3 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 2ec746e5e..37b78c093 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -47,6 +47,7 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
+ android:name="DialerApplication"
android:label="@string/applicationLabel"
android:icon="@mipmap/ic_launcher_phone"
android:hardwareAccelerated="true"
diff --git a/src/com/android/dialer/DialerApplication.java b/src/com/android/dialer/DialerApplication.java
new file mode 100644
index 000000000..39a1ac748
--- /dev/null
+++ b/src/com/android/dialer/DialerApplication.java
@@ -0,0 +1,16 @@
+// Copyright 2013 Google Inc. All Rights Reserved.
+
+package com.android.dialer;
+
+import android.app.Application;
+
+import com.android.contacts.common.extensions.ExtensionsFactory;
+
+public class DialerApplication extends Application {
+
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ ExtensionsFactory.init(getApplicationContext());
+ }
+}
diff --git a/src/com/android/dialer/SearchFragment.java b/src/com/android/dialer/SearchFragment.java
index 38b7e7758..a0b890823 100644
--- a/src/com/android/dialer/SearchFragment.java
+++ b/src/com/android/dialer/SearchFragment.java
@@ -16,13 +16,11 @@
package com.android.dialer;
import android.app.Activity;
-import android.view.LayoutInflater;
-import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
-import com.android.contacts.common.list.ContactListItemView;
import com.android.contacts.common.list.ContactEntryListAdapter;
+import com.android.contacts.common.list.ContactListItemView;
import com.android.contacts.common.list.PhoneNumberPickerFragment;
import com.android.dialer.list.OnListFragmentScrolledListener;