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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user