diff --git a/Android.mk b/Android.mk
index 4a6a32566dc6fbc1abe99e7af44e1119eabc99b6..5bd1b68340aa37f378a5a7c41bd202413ab7775e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -23,11 +23,14 @@ LOCAL_STATIC_ANDROID_LIBRARIES := \
android-support-v7-palette \
android-support-v4
+LOCAL_JAVA_LIBRARIES := voip-common
+
LOCAL_STATIC_JAVA_LIBRARIES := \
android-common \
com.android.vcard \
guava \
- libphonenumber
+ libphonenumber \
+ org.lineageos.platform.sdk \
LOCAL_USE_AAPT2 := true
@@ -41,7 +44,8 @@ LOCAL_PRIVILEGED_MODULE := true
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-LOCAL_SDK_VERSION := current
+
+LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_MIN_SDK_VERSION := 21
include $(BUILD_PACKAGE)
diff --git a/proguard.flags b/proguard.flags
index 07ec5d2bd46ce99160ed292218cc69c87e3e3904..551a8519f1dfdba42193fd2c05b4880308f8292b 100644
--- a/proguard.flags
+++ b/proguard.flags
@@ -120,3 +120,4 @@
-keepclassmembers class * {
@com.google.common.annotations.VisibleForTesting *;
}
+-dontwarn lineageos.**
\ No newline at end of file
diff --git a/res/layout/structured_name_editor_view.xml b/res/layout/structured_name_editor_view.xml
index f5b2a675da777e4153c4d0220bc5ad47fa11f1ff..201fe094ca1ce25fff8a6ba0aad6eb49c518d2d9 100644
--- a/res/layout/structured_name_editor_view.xml
+++ b/res/layout/structured_name_editor_view.xml
@@ -31,7 +31,7 @@
diff --git a/src/com/android/contacts/editor/EditorUiUtils.java b/src/com/android/contacts/editor/EditorUiUtils.java
index 9aa5c8e16a8e2aeeb594b990c097ed182e1fa5ac..b2172791f82bdc568341245d60b60290a256cc73 100644
--- a/src/com/android/contacts/editor/EditorUiUtils.java
+++ b/src/com/android/contacts/editor/EditorUiUtils.java
@@ -157,7 +157,7 @@ public class EditorUiUtils {
switch (mimeType) {
case StructuredName.CONTENT_ITEM_TYPE:
return ResourcesCompat.getDrawable(context.getResources(),
- R.drawable.quantum_ic_person_vd_theme_24, null);
+ lineageos.platform.R.drawable.ic_person_stroked, null);
case StructuredPostal.CONTENT_ITEM_TYPE:
return ResourcesCompat.getDrawable(context.getResources(),
R.drawable.quantum_ic_place_vd_theme_24, null);
@@ -166,10 +166,10 @@ public class EditorUiUtils {
R.drawable.quantum_ic_dialer_sip_vd_theme_24, null);
case Phone.CONTENT_ITEM_TYPE:
return ResourcesCompat.getDrawable(context.getResources(),
- R.drawable.quantum_ic_phone_vd_theme_24, null);
+ lineageos.platform.R.drawable.ic_phone, null);
case Im.CONTENT_ITEM_TYPE:
return ResourcesCompat.getDrawable(context.getResources(),
- R.drawable.quantum_ic_message_vd_theme_24, null);
+ lineageos.platform.R.drawable.ic_message, null);
case Event.CONTENT_ITEM_TYPE:
return ResourcesCompat.getDrawable(context.getResources(),
R.drawable.quantum_ic_event_vd_theme_24, null);
diff --git a/src/com/android/contacts/editor/RawContactEditorView.java b/src/com/android/contacts/editor/RawContactEditorView.java
index 19da5bc81c202949428d28765e51d8b28e35865b..fc41ae99b76ce59580dd8eb4a7a1659aa1ff0248 100644
--- a/src/com/android/contacts/editor/RawContactEditorView.java
+++ b/src/com/android/contacts/editor/RawContactEditorView.java
@@ -661,7 +661,7 @@ public class RawContactEditorView extends LinearLayout implements View.OnClickLi
primary = mCurrentRawContactDelta.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE);
final String name = primary != null ? primary.getAsString(StructuredName.DISPLAY_NAME) :
getContext().getString(R.string.missing_name);
- final Drawable nameDrawable = context.getDrawable(R.drawable.quantum_ic_person_vd_theme_24);
+ final Drawable nameDrawable = context.getDrawable(lineageos.platform.R.drawable.ic_person_stroked);
final String nameContentDescription = res.getString(R.string.header_name_entry);
bindData(nameDrawable, nameContentDescription, name, /* type */ null,
/* isFirstEntry */ true);
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 15d0d8076e9d00563a71a8777015de604d84ab15..b39cb199d7917a6b956db7acf6040eee045c0c25 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -1421,7 +1421,7 @@ public class QuickContactActivity extends ContactsActivity {
*/
private void initializeNoContactDetailCard(boolean areAllRawContactsSimAccounts) {
final Drawable phoneIcon = ResourcesCompat.getDrawable(getResources(),
- R.drawable.quantum_ic_phone_vd_theme_24, null).mutate();
+ lineageos.platform.R.drawable.ic_phone, null).mutate();
final Entry phonePromptEntry = new Entry(CARD_ENTRY_ID_EDIT_CONTACT,
phoneIcon, getString(R.string.quickcontact_add_phone_number),
/* subHeader = */ null, /* subHeaderIcon = */ null, /* text = */ null,
@@ -1435,7 +1435,7 @@ public class QuickContactActivity extends ContactsActivity {
/* thirdAction = */ Entry.ACTION_NONE,
/* thirdExtras = */ null,
/* shouldApplyThirdIconColor = */ true,
- R.drawable.quantum_ic_phone_vd_theme_24);
+ lineageos.platform.R.drawable.ic_phone);
final List> promptEntries = new ArrayList<>();
promptEntries.add(new ArrayList(1));
@@ -1804,7 +1804,7 @@ public class QuickContactActivity extends ContactsActivity {
primaryContentDescription.append(header);
phoneContentDescription = com.android.contacts.util.ContactDisplayUtils
.getTelephoneTtsSpannable(primaryContentDescription.toString(), header);
- iconResourceId = R.drawable.quantum_ic_phone_vd_theme_24;
+ iconResourceId = lineageos.platform.R.drawable.ic_phone;
icon = res.getDrawable(iconResourceId);
if (PhoneCapabilityTester.isPhone(context)) {
intent = CallUtil.getCallIntent(phone.getNumber());
@@ -1814,7 +1814,7 @@ public class QuickContactActivity extends ContactsActivity {
Uri.fromParts(ContactsUtils.SCHEME_SMSTO, phone.getNumber(), null));
alternateIntent.putExtra(EXTRA_ACTION_TYPE, ActionType.SMS);
- alternateIcon = res.getDrawable(R.drawable.quantum_ic_message_vd_theme_24);
+ alternateIcon = res.getDrawable( lineageos.platform.R.drawable.ic_message);
alternateContentDescription.append(res.getString(R.string.sms_custom, header));
smsContentDescription = com.android.contacts.util.ContactDisplayUtils
.getTelephoneTtsSpannable(alternateContentDescription.toString(), header);