From 7fd3a458772e4a6817ebd86ff8b92d25ab891605 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Tue, 18 Aug 2020 16:03:23 +0000 Subject: [PATCH 1/3] Contacts: Add gitlab CI Change-Id: Ia644c665cc785a835bdc79b57ce741e020183541 --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000..f01e777905 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,7 @@ +stages: + - update-from-upstream + +include: + - project: 'e/templates' + ref: master + file: '/gitlab-ci/.gitlab-ci-import-updates-from-upstream.yml' -- GitLab From 36ec49f4ca5574ce48c590e285f6e34900339aca Mon Sep 17 00:00:00 2001 From: Mohit Date: Fri, 6 Mar 2020 12:31:27 +0530 Subject: [PATCH 2/3] Contacts: about: Add license, authors, and contact information --- res/values/e_strings.xml | 35 ++++++++++++++++++ res/xml/preference_about.xml | 26 +++++++++++++ .../preference/AboutPreferenceFragment.java | 37 ++++++++++++++++--- 3 files changed, 92 insertions(+), 6 deletions(-) create mode 100644 res/values/e_strings.xml diff --git a/res/values/e_strings.xml b/res/values/e_strings.xml new file mode 100644 index 0000000000..14e376dfe3 --- /dev/null +++ b/res/values/e_strings.xml @@ -0,0 +1,35 @@ + + + + + Contacts is forked from LineageOS Contacts + + + Authors + + + Source code + + + Licence + + + Contacts information + Contacts is an open source App for Android + + + Emergency information + diff --git a/res/xml/preference_about.xml b/res/xml/preference_about.xml index a109db68ed..9258a60d75 100644 --- a/res/xml/preference_about.xml +++ b/res/xml/preference_about.xml @@ -15,11 +15,37 @@ --> + + + + + + + + + + Date: Thu, 25 Mar 2021 22:18:37 +0530 Subject: [PATCH 3/3] Contacts: Sort /e/ account with first priority and allow user to modify primary account for profile Change-Id: I27755aa319359ec33438f0a6bd470be126fd0f9a --- .../contacts/editor/RawContactEditorView.java | 2 +- .../contacts/model/account/AccountComparator.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/com/android/contacts/editor/RawContactEditorView.java b/src/com/android/contacts/editor/RawContactEditorView.java index 19da5bc81c..4e6d61f375 100644 --- a/src/com/android/contacts/editor/RawContactEditorView.java +++ b/src/com/android/contacts/editor/RawContactEditorView.java @@ -782,7 +782,7 @@ public class RawContactEditorView extends LinearLayout implements View.OnClickLi } // If we're saving a new contact and there are multiple accounts, add the account selector. - if (mHasNewContact && !mIsUserProfile && mAccounts.size() > 1) { + if (mHasNewContact && mAccounts.size() > 1) { addAccountSelector(mCurrentRawContactDelta); } } diff --git a/src/com/android/contacts/model/account/AccountComparator.java b/src/com/android/contacts/model/account/AccountComparator.java index 70ccf494fb..8bc8fbbf76 100644 --- a/src/com/android/contacts/model/account/AccountComparator.java +++ b/src/com/android/contacts/model/account/AccountComparator.java @@ -38,13 +38,13 @@ public class AccountComparator implements Comparator { return -1; } else if (a.name == null || a.type == null) { return 1; - } else if (isWritableGoogleAccount(a) && a.equals(mDefaultAccount)) { + } else if (isWritableEAccount(a) && a.equals(mDefaultAccount)) { return -1; - } else if (isWritableGoogleAccount(b) && b.equals(mDefaultAccount)) { + } else if (isWritableEAccount(b) && b.equals(mDefaultAccount)) { return 1; - } else if (isWritableGoogleAccount(a) && !isWritableGoogleAccount(b)) { + } else if (isWritableEAccount(a) && !isWritableEAccount(b)) { return -1; - } else if (isWritableGoogleAccount(b) && !isWritableGoogleAccount(a)) { + } else if (isWritableEAccount(b) && !isWritableEAccount(a)) { return 1; } else { int diff = a.name.compareToIgnoreCase(b.name); @@ -65,7 +65,7 @@ public class AccountComparator implements Comparator { } } - private static boolean isWritableGoogleAccount(AccountWithDataSet account) { - return GoogleAccountType.ACCOUNT_TYPE.equals(account.type) && account.dataSet == null; + private static boolean isWritableEAccount(AccountWithDataSet account) { + return "foundation.e.accountmanager.eelo.address_book".equals(account.type) && account.dataSet == null; } } -- GitLab