Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: android 11 close notificaiton drawer for quick actions #614

Merged
merged 1 commit into from Dec 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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