From ff111010f9c0c78dcde3f628bde4611aab3d2b26 Mon Sep 17 00:00:00 2001 From: Jacob Hobbie Date: Mon, 29 Nov 2021 22:03:22 +0000 Subject: [PATCH] Adding receiver flag. ACTION_CLOSE_SYSTEM_DIALOG should always be marked as exported since it is used in tests, but dropped by the platform in versions that will require a flag marking a context registered receiver as exported/not exported. Change-Id: I0f943ed36aa763d294b80e25af8e3d05d56b8f5f Test: No-op Bug: 208294772 --- services/core/java/com/android/server/am/BaseErrorDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/am/BaseErrorDialog.java b/services/core/java/com/android/server/am/BaseErrorDialog.java index 7b5f2cd789475..259dd8ec567df 100644 --- a/services/core/java/com/android/server/am/BaseErrorDialog.java +++ b/services/core/java/com/android/server/am/BaseErrorDialog.java @@ -53,7 +53,7 @@ public class BaseErrorDialog extends AlertDialog { mHandler.sendEmptyMessage(DISABLE_BUTTONS); mHandler.sendMessageDelayed(mHandler.obtainMessage(ENABLE_BUTTONS), 1000); getContext().registerReceiver(mReceiver, - new IntentFilter(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); + new IntentFilter(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), Context.RECEIVER_EXPORTED); } @Override