summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGyanesh Mittal <gyaneshm@google.com>2023-04-26 17:44:41 +0000
committerCherrypicker Worker <android-build-cherrypicker-worker@system.gserviceaccount.com>2023-04-26 17:44:41 +0000
commit2b1771beda6667b280e1a9d5567bac97f2114e71 (patch)
tree50a23d5dff871df2411e684eecd430e11e1b3f7d /src
parentf28dac6e6f9fcbcbdd27e7cdb2db721035f88043 (diff)
downloadContacts-2b1771beda6667b280e1a9d5567bac97f2114e71.tar.gz
Revert "Add Extra Parameter for Intent"
This reverts commit 5da78b7aa40215f0b5f916f02f31dde4a7f679fb. Reason for revert: The original change causing this crash has been reverted. Thus, this no longer required. ag/22339503 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ceed19f8b051249d3c0e3a6a09a5c34c92795655) Merged-In: I5b712c1485db437a39a378d7132b85c599f171e8 Change-Id: I5b712c1485db437a39a378d7132b85c599f171e8
Diffstat (limited to 'src')
-rw-r--r--src/com/android/contacts/util/ImplicitIntentsUtil.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/com/android/contacts/util/ImplicitIntentsUtil.java b/src/com/android/contacts/util/ImplicitIntentsUtil.java
index e1377e06b..a1ab896d0 100644
--- a/src/com/android/contacts/util/ImplicitIntentsUtil.java
+++ b/src/com/android/contacts/util/ImplicitIntentsUtil.java
@@ -30,8 +30,6 @@ import android.provider.ContactsContract.QuickContact;
import android.provider.Settings;
import android.text.TextUtils;
-import androidx.core.os.BuildCompat;
-
import com.android.contacts.logging.ScreenEvent.ScreenType;
import com.android.contacts.model.account.GoogleAccountType;
import com.android.contacts.quickcontact.QuickContactActivity;
@@ -142,9 +140,6 @@ public class ImplicitIntentsUtil {
public static Intent getIntentForAddingAccount() {
final Intent intent = new Intent(Settings.ACTION_SYNC_SETTINGS);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
- if (BuildCompat.isAtLeastU()) {
- intent.setData(Uri.fromParts("package", "com.android.contacts", null));
- }
intent.putExtra(Settings.EXTRA_AUTHORITIES,
new String[]{ContactsContract.AUTHORITY});
return intent;