From 91afb3796ddb1a0baef1e3ab29c6914a302be162 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Fri, 18 Dec 2020 14:43:31 +0000 Subject: [PATCH] Revert "Merge branch 'issue_1828' into 'v1-pie'" This reverts merge request !35 --- AndroidManifest.xml | 1 - res/drawable/fab_bg.xml | 12 --- res/drawable/ic_work_profile.xml | 3 +- res/drawable/quantum_ic_add_vd_theme_24.xml | 2 +- res/drawable/quantum_ic_close_vd_theme_24.xml | 2 +- res/drawable/quantum_ic_menu_vd_theme_24.xml | 2 +- .../quantum_ic_search_vd_theme_24.xml | 2 +- .../account_selector_list_item_condensed.xml | 2 - res/layout/contact_editor_activity.xml | 1 - res/layout/contact_list_filter_item.xml | 1 - .../custom_contact_list_filter_group.xml | 3 +- res/layout/date_picker.xml | 4 +- res/layout/default_account_checkbox.xml | 1 - res/layout/floating_action_button.xml | 4 +- res/layout/people_activity_toolbar.xml | 4 +- res/layout/search_bar_expanded.xml | 5 +- res/menu/edit_contact.xml | 3 - res/menu/people_options.xml | 5 +- res/menu/search_menu.xml | 5 +- res/values-v27/styles.xml | 8 -- res/values/colors.xml | 20 ++--- res/values/styles.xml | 80 +++++-------------- res/xml/searchable.xml | 2 +- .../android/contacts/ContactsApplication.java | 12 --- .../contacts/activities/ActionBarAdapter.java | 4 +- .../activities/ContactEditorActivity.java | 21 ----- .../activities/ContactSelectionActivity.java | 28 +------ .../contacts/activities/LicenseActivity.java | 16 ---- .../contacts/activities/PeopleActivity.java | 63 +++------------ .../contacts/drawer/DrawerAdapter.java | 1 - .../editor/ContactEditorFragment.java | 4 - .../contacts/editor/EditorUiUtils.java | 6 +- .../contacts/editor/TextFieldsEditorView.java | 10 --- .../ContactMultiDeletionInteraction.java | 10 --- .../interactions/ImportDialogFragment.java | 11 +-- .../contacts/list/AccountFilterActivity.java | 25 ------ .../list/CustomContactListFilterActivity.java | 29 +------ .../DefaultContactBrowseListFragment.java | 11 +-- .../list/GroupMemberPickerFragment.java | 2 - .../ContactsPreferenceActivity.java | 30 +------ .../DisplayOptionsPreferenceFragment.java | 3 - tests/res/layout/fill_call_log_test.xml | 1 - 42 files changed, 59 insertions(+), 400 deletions(-) delete mode 100644 res/drawable/fab_bg.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index f91df2770e..98d7677463 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -71,7 +71,6 @@ android:appCategory="social" android:supportsRtl="true" android:taskAffinity="android.task.contacts" - android:usesCleartextTraffic="false"> - - - - - - \ No newline at end of file diff --git a/res/drawable/ic_work_profile.xml b/res/drawable/ic_work_profile.xml index 47b2f9b3c4..d30e8e1c10 100644 --- a/res/drawable/ic_work_profile.xml +++ b/res/drawable/ic_work_profile.xml @@ -2,8 +2,7 @@ android:width="16dp" android:height="16dp" android:viewportWidth="24.0" - android:viewportHeight="24.0" - > + android:viewportHeight="24.0"> diff --git a/res/drawable/quantum_ic_add_vd_theme_24.xml b/res/drawable/quantum_ic_add_vd_theme_24.xml index 3ceffde2d9..167dafee63 100644 --- a/res/drawable/quantum_ic_add_vd_theme_24.xml +++ b/res/drawable/quantum_ic_add_vd_theme_24.xml @@ -21,6 +21,6 @@ android:viewportHeight="24.0" android:tint="?attr/colorControlNormal"> diff --git a/res/drawable/quantum_ic_close_vd_theme_24.xml b/res/drawable/quantum_ic_close_vd_theme_24.xml index 955f791248..0aafe4b5a1 100644 --- a/res/drawable/quantum_ic_close_vd_theme_24.xml +++ b/res/drawable/quantum_ic_close_vd_theme_24.xml @@ -21,6 +21,6 @@ android:viewportHeight="24.0" android:tint="?attr/colorControlNormal"> diff --git a/res/drawable/quantum_ic_menu_vd_theme_24.xml b/res/drawable/quantum_ic_menu_vd_theme_24.xml index fdb88f3b93..ba6adcbc42 100644 --- a/res/drawable/quantum_ic_menu_vd_theme_24.xml +++ b/res/drawable/quantum_ic_menu_vd_theme_24.xml @@ -21,6 +21,6 @@ android:viewportHeight="24.0" android:tint="?attr/colorControlNormal"> diff --git a/res/drawable/quantum_ic_search_vd_theme_24.xml b/res/drawable/quantum_ic_search_vd_theme_24.xml index 6e9da640e2..5c5632a84b 100644 --- a/res/drawable/quantum_ic_search_vd_theme_24.xml +++ b/res/drawable/quantum_ic_search_vd_theme_24.xml @@ -21,6 +21,6 @@ android:viewportHeight="24.0" android:tint="?attr/colorControlNormal"> diff --git a/res/layout/account_selector_list_item_condensed.xml b/res/layout/account_selector_list_item_condensed.xml index d43a3af37d..ae91726033 100644 --- a/res/layout/account_selector_list_item_condensed.xml +++ b/res/layout/account_selector_list_item_condensed.xml @@ -52,7 +52,5 @@ android:textColor="?android:attr/textColorSecondary" android:singleLine="true" android:ellipsize="end"/> - - diff --git a/res/layout/contact_editor_activity.xml b/res/layout/contact_editor_activity.xml index fc30c121f0..36fc64aa16 100644 --- a/res/layout/contact_editor_activity.xml +++ b/res/layout/contact_editor_activity.xml @@ -30,7 +30,6 @@ android:background="?android:attr/colorPrimary" android:elevation="4dp" app:navigationContentDescription="@string/cancel_button_content_description" - app:theme="@style/ThemeOverlay.AppCompat.Light" app:navigationIcon="@drawable/quantum_ic_close_vd_theme_24" app:title="@string/contact_editor_title_existing_contact" /> diff --git a/res/layout/contact_list_filter_item.xml b/res/layout/contact_list_filter_item.xml index 637b2246ab..4d1fbca70f 100644 --- a/res/layout/contact_list_filter_item.xml +++ b/res/layout/contact_list_filter_item.xml @@ -61,7 +61,6 @@ + /> diff --git a/res/layout/date_picker.xml b/res/layout/date_picker.xml index 9bfb8de996..c700f9e643 100644 --- a/res/layout/date_picker.xml +++ b/res/layout/date_picker.xml @@ -36,9 +36,7 @@ android:textAppearance="?android:attr/textAppearanceLarge" android:layout_gravity="center_horizontal" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:buttonTint="@color/color_default_blue1" - /> + android:layout_height="wrap_content"/> \ No newline at end of file diff --git a/res/layout/floating_action_button.xml b/res/layout/floating_action_button.xml index 9dcf9f64fa..a31512f19f 100644 --- a/res/layout/floating_action_button.xml +++ b/res/layout/floating_action_button.xml @@ -26,7 +26,7 @@ android:layout_gravity="bottom|end" android:layout_marginBottom="@dimen/floating_action_button_margin_bottom" android:layout_marginEnd="@dimen/floating_action_button_margin_right" - android:background="@drawable/fab_bg" + android:background="@drawable/fab_pink" android:elevation="@dimen/design_fab_elevation" app:layout_dodgeInsetEdges="bottom" > @@ -37,5 +37,5 @@ android:background="@drawable/floating_action_button" android:contentDescription="@string/action_menu_add_new_contact_button" android:src="@drawable/quantum_ic_add_vd_theme_24" - android:tint="@color/color_default_blue1" /> + android:tint="@color/floating_action_button_icon_color"/> \ No newline at end of file diff --git a/res/layout/people_activity_toolbar.xml b/res/layout/people_activity_toolbar.xml index 89f10e7d2d..3599f0c607 100644 --- a/res/layout/people_activity_toolbar.xml +++ b/res/layout/people_activity_toolbar.xml @@ -33,9 +33,7 @@ android:layout_height="?attr/actionBarSize" android:id="@+id/toolbar" android:padding="0dp" - style="@style/ContactsToolbarStyle" - /> + style="@style/ContactsToolbarStyle" /> - \ No newline at end of file diff --git a/res/layout/search_bar_expanded.xml b/res/layout/search_bar_expanded.xml index 58294a3b3c..9f90bc7d09 100644 --- a/res/layout/search_bar_expanded.xml +++ b/res/layout/search_bar_expanded.xml @@ -28,10 +28,9 @@ android:layout_height="@dimen/search_box_icon_size" android:layout_marginEnd="@dimen/search_box_navigation_icon_margin" android:src="@drawable/quantum_ic_arrow_back_vd_theme_24" - android:tint="@color/color_default_blue1" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/action_menu_back_from_search" - /> + android:tint="@color/actionbar_background_color" /> diff --git a/res/menu/edit_contact.xml b/res/menu/edit_contact.xml index b30934e67c..039c6570eb 100644 --- a/res/menu/edit_contact.xml +++ b/res/menu/edit_contact.xml @@ -17,15 +17,12 @@ diff --git a/res/menu/people_options.xml b/res/menu/people_options.xml index 86be2d61c2..5fb0f2eb62 100644 --- a/res/menu/people_options.xml +++ b/res/menu/people_options.xml @@ -14,14 +14,11 @@ limitations under the License. --> + xmlns:contacts="http://schemas.android.com/apk/res-auto"> + xmlns:contacts="http://schemas.android.com/apk/res-auto"> diff --git a/res/values-v27/styles.xml b/res/values-v27/styles.xml index 3cd5eaf678..ca71d406fd 100644 --- a/res/values-v27/styles.xml +++ b/res/values-v27/styles.xml @@ -61,13 +61,6 @@ @color/navigation_bar_bg @color/navigation_bar_divider true - @style/MyOverflowButtonStyle - true - true - - - - - - - - - @@ -443,7 +402,7 @@ @@ -500,8 +459,7 @@ background and text color. See also android:style/Widget.Holo.TextView.ListSepar make margin between the button and screen edge 16dp -->