Skip to content

Commit 9401042

Browse files
AttwellBrianAndroid (Google) Code Review
authored andcommitted
Merge "Compose QC intent with FLAG_ACTIVITY_SINGLE_TOP" into lmp-dev
2 parents 0670f02 + 9ee6640 commit 9401042

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/java/android/provider/ContactsContract.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8164,8 +8164,10 @@ public static Intent composeQuickContactsIntent(Context context, Rect target,
81648164
&& !(actualContext instanceof Activity)) {
81658165
actualContext = ((ContextWrapper) actualContext).getBaseContext();
81668166
}
8167-
final int intentFlags = (actualContext instanceof Activity)
8168-
? 0 : Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK;
8167+
final int intentFlags = ((actualContext instanceof Activity)
8168+
? 0 : Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK)
8169+
// Workaround for b/16898764. Declaring singleTop in manifest doesn't work.
8170+
| Intent.FLAG_ACTIVITY_SINGLE_TOP;
81698171

81708172
// Launch pivot dialog through intent for now
81718173
final Intent intent = new Intent(ACTION_QUICK_CONTACT).addFlags(intentFlags);

0 commit comments

Comments
 (0)