summaryrefslogtreecommitdiffstats
path: root/java/com/android/contacts
diff options
context:
space:
mode:
authorcalderwoodra <calderwoodra@google.com>2018-02-12 11:40:20 -0800
committerCopybara-Service <copybara-piper@google.com>2018-02-14 17:49:08 -0800
commitc266566db55647ac1e27f686b6f03440c5eee36b (patch)
tree921d36f41242104de690aa0b60c4ce1868893a03 /java/com/android/contacts
parentb2d5e7caf51de7805b98295e97c37a91792cbddf (diff)
downloadandroid_packages_apps_Dialer-c266566db55647ac1e27f686b6f03440c5eee36b.tar.gz
android_packages_apps_Dialer-c266566db55647ac1e27f686b6f03440c5eee36b.tar.bz2
android_packages_apps_Dialer-c266566db55647ac1e27f686b6f03440c5eee36b.zip
Restored work profile contacts to Dialer search.
We were intentionally leaving out work profile contacts to gauge user impact. Unfortunatly, no enterprise users left feedback in the play store but luckily, they raised the concern internally and it was escalated to the Android for Work team. Bug: 73083054 Test: manual PiperOrigin-RevId: 185409607 Change-Id: Iae40d0abdbe7f209ba3ad12823e07eac748632a5
Diffstat (limited to 'java/com/android/contacts')
-rw-r--r--java/com/android/contacts/common/compat/DirectoryCompat.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/contacts/common/compat/DirectoryCompat.java b/java/com/android/contacts/common/compat/DirectoryCompat.java
index 85f4a4202..e67087659 100644
--- a/java/com/android/contacts/common/compat/DirectoryCompat.java
+++ b/java/com/android/contacts/common/compat/DirectoryCompat.java
@@ -48,4 +48,8 @@ public class DirectoryCompat {
public static boolean isEnterpriseDirectoryId(long directoryId) {
return VERSION.SDK_INT >= VERSION_CODES.N && Directory.isEnterpriseDirectoryId(directoryId);
}
+
+ public static boolean isOnlyEnterpriseDirectoryId(long directoryId) {
+ return isEnterpriseDirectoryId(directoryId) && !isRemoteDirectoryId(directoryId);
+ }
}