Adding flag to dynamically registered receiver.

ACTION_CLOSE_SYSTEM_DIALOG has been deprecated in T but needs to remain as exported so that it can pass tests.

Bug: 161145287
Change-Id: I1c56cee1d2fe27d5af01b6ee21f588a733a1f564
Test: No-op
This commit is contained in:
Jacob Hobbie
2022-02-03 17:18:13 +00:00
parent 63827d96ae
commit ae8675669a

View File

@@ -103,7 +103,7 @@ public class TvPipMenuController implements PipMenuController, TvPipMenuView.Lis
};
context.registerReceiverForAllUsers(closeSystemDialogsBroadcastReceiver,
new IntentFilter(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), null /* permission */,
mainHandler);
mainHandler, Context.RECEIVER_EXPORTED);
pipMediaController.addActionListener(this::onMediaActionsChanged);
}