Skip to content

Commit a3a041d

Browse files
author
Dianne Hackborn
committed
Maybe fix #6584979: Unable to launch share chooser activity from a Notification action
Don't count an activity as a system dialog to be closed, if it is the one that asked to have system dialogs closed. Change-Id: I60bb194adde78dc3ac0a4d9b0c1dfbabd105e594
1 parent 3c144c3 commit a3a041d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3529,7 +3529,8 @@ void closeSystemDialogsLocked(int callingUid, String reason) {
35293529

35303530
for (int i=mMainStack.mHistory.size()-1; i>=0; i--) {
35313531
ActivityRecord r = (ActivityRecord)mMainStack.mHistory.get(i);
3532-
if ((r.info.flags&ActivityInfo.FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS) != 0) {
3532+
if ((r.info.flags&ActivityInfo.FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS) != 0
3533+
&& (r.intent.getFlags()&Intent.FLAG_ACTIVITY_CLOSE_SYSTEM_DIALOGS) == 0) {
35333534
r.stack.finishActivityLocked(r, i,
35343535
Activity.RESULT_CANCELED, null, "close-sys");
35353536
}

0 commit comments

Comments
 (0)