Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 5c0ab46b authored by Xiao-Long Chen's avatar Xiao-Long Chen Committed by Michael Bestas
Browse files

Re-add dialer lookup.

Change-Id: I677460ad5767b8698ee24d6d43ff159aee55387a
parent 0b5a47d3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@ LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
    $(support_library_root_dir)/v7/appcompat/res \
    $(support_library_root_dir)/design/res

LOCAL_ASSET_DIR += $(LOCAL_PATH)/assets

LOCAL_JAVA_LIBRARIES := telephony-common \
                        telephony-ext \
                        ims-common
@@ -66,7 +68,8 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
    libphonenumber \
    ims-ext-common \
    phonebook_wrapper \
    telephony-common
    telephony-common \
    org.cyanogenmod.platform.sdk

LOCAL_PACKAGE_NAME := Dialer
LOCAL_CERTIFICATE := shared
+7 −1
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@
     start requests, even if they happen immediately after the user
     presses home. -->
    <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
    <uses-permission android:name="cyanogenmod.permission.WRITE_SETTINGS" />

    <application
        android:name="DialerApplication"
@@ -76,7 +77,7 @@
        android:hardwareAccelerated="true"
        android:supportsRtl="true"
        android:backupAgent='com.android.dialer.DialerBackupAgent'
        android:usesCleartextTraffic="false">
        android:usesCleartextTraffic="true">

        <meta-data android:name="com.google.android.backup.api_key"
            android:value="AEdPqrEAAAAIBXgtCEKQ6W0PXVnW-ZVia2KmlV2AxsTw3GjAeQ" />
@@ -377,6 +378,11 @@
            android:multiprocess="false"
            />

        <provider android:name="com.android.dialer.lookup.LookupProvider"
                  android:authorities="com.android.dialer.provider"
                  android:exported="false"
                  android:multiprocess="false" />

        <activity android:name=".SpeedDialListActivity"
            android:theme="@style/SpeedDialtactsTheme"
            android:label="@string/speed_dial_settings" >
+2 −2
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.incalluibind;
import android.content.Context;
import android.content.Intent;

import com.android.dialer.lookup.ReverseLookupService;
import com.android.incallui.CallCardPresenter.EmergencyCallListener;
import com.android.incallui.ContactUtils;
import com.android.incallui.DistanceHelper;
@@ -27,8 +28,7 @@ import com.android.incallui.service.PhoneNumberService;
public class ObjectFactory {

    public static PhoneNumberService newPhoneNumberService(Context context) {
        // no phone number service.
        return null;
        return new ReverseLookupService(context);
    }

    public static EmergencyCallListener newEmergencyCallListener() {
+1 −0
Original line number Diff line number Diff line
extendedPhoneDirectories=com.android.dialer.lookup.ExtendedLookupDirectories
+3 −0
Original line number Diff line number Diff line
@@ -19,4 +19,7 @@
    public <init>(android.content.Context, android.util.AttributeSet);
}

# Keep ExtendedLookupDirectories for assets/contacts_extensions.properties
-keep class com.android.dialer.lookup.ExtendedLookupDirectories { *; }

-verbose
Loading