Skip to content

Commit

Permalink
Support new API registerReceiver(BroadcastReceiver receiver, IntentFi…
Browse files Browse the repository at this point in the history
…lter filter, int flags) after O

PiperOrigin-RevId: 427658232
  • Loading branch information
Googler authored and hoisie committed Mar 9, 2022
1 parent 5c33f34 commit 94dd3aa
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -277,6 +277,11 @@ protected Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filte
return getShadowInstrumentation().registerReceiver(receiver, filter, realContextImpl);
}

@Implementation(minSdk = O)
protected Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, int flags) {
return getShadowInstrumentation().registerReceiver(receiver, filter, realContextImpl);
}

@Implementation
protected Intent registerReceiver(
BroadcastReceiver receiver,
Expand Down

0 comments on commit 94dd3aa

Please sign in to comment.