Skip to content

Commit

Permalink
fix: android 11 close notificaiton drawer for quick actions (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
helenaford committed Dec 12, 2022
1 parent af61949 commit e723fea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/app/notifee/core/ReceiverService.java
Expand Up @@ -211,10 +211,10 @@ private void onActionPressIntent(Intent intent) {
int targetSdkVersion =
ContextHolder.getApplicationContext().getApplicationInfo().targetSdkVersion;

// Close notification drawer if targetSdkVersion is Android 11 and lower
// Close notification drawer if application SDK is Android 11 and lower
// See
// https://developer.android.com/about/versions/12/behavior-changes-all#close-system-dialogs
if (targetSdkVersion < Build.VERSION_CODES.S) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
ContextHolder.getApplicationContext()
.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
}
Expand Down

0 comments on commit e723fea

Please sign in to comment.