Separate work and personal contacts search result
This change allows sms app to show search result of different directories in different partitions. Currently, only personal default and enterprise default directory are searched. BUG=26021888 BUG=28016344 (cherry picked from commit 59666b32c192bd28807ccd2f9153c796668bdf13) Change-Id: I733ceaae806d13661861126ce61c34108ac7e662
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2009 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF A`NY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<!-- Layout used for list section separators. -->
|
||||
<TextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:text="@string/work_directory_display_name"
|
||||
style="@style/DirectoryHeaderStyle"
|
||||
/>
|
||||
@@ -188,4 +188,10 @@
|
||||
<dimen name="fastscroll_preview_margin_left_right">8dp</dimen>
|
||||
<dimen name="fastscroll_preview_text_size">24sp</dimen>
|
||||
|
||||
<dimen name="directory_header_padding_start">16dp</dimen>
|
||||
<dimen name="directory_header_padding_end">32dp</dimen>
|
||||
<dimen name="directory_header_padding_top">18dp</dimen>
|
||||
<dimen name="directory_header_padding_bottom">8dp</dimen>
|
||||
<dimen name="directory_header_text_size">14sp</dimen>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -973,4 +973,6 @@
|
||||
|
||||
<!-- The accessibility text read when the sim chooser pops up to read the current selected sim -->
|
||||
<string name="selected_sim_content_message"><xliff:g id="selected_sim">%s</xliff:g> selected</string>
|
||||
|
||||
<string name="work_directory_display_name">Work Profile contacts</string>
|
||||
</resources>
|
||||
|
||||
@@ -623,4 +623,14 @@
|
||||
<item name="android:textColor">@android:color/white</item>
|
||||
<item name="android:gravity">center</item>
|
||||
</style>
|
||||
<style name="DirectoryHeaderStyle">
|
||||
<item name="android:paddingLeft">@dimen/directory_header_padding_start</item>
|
||||
<item name="android:paddingStart">@dimen/directory_header_padding_start</item>
|
||||
<item name="android:paddingRight">@dimen/directory_header_padding_end</item>
|
||||
<item name="android:paddingEnd">@dimen/directory_header_padding_end</item>
|
||||
<item name="android:paddingTop">@dimen/directory_header_padding_top</item>
|
||||
<item name="android:paddingBottom">@dimen/directory_header_padding_bottom</item>
|
||||
<item name="android:textSize">@dimen/directory_header_text_size</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user