Skip to content

Commit deeade6

Browse files
fix: [Android] dismiss cancelled notifications (#140)
Dismiss cancelled and error notifications on Android if "autoClear" set to true
1 parent e44bbdd commit deeade6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/vydia/UploaderModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ public void startUpload(ReadableMap options, final Promise promise) {
194194

195195
if (notification.hasKey("autoClear") && notification.getBoolean("autoClear")){
196196
notificationConfig.getCompleted().autoClear = true;
197+
notificationConfig.getCancelled().autoClear = true;
198+
notificationConfig.getError().autoClear = true;
197199
}
198200

199201
if (notification.hasKey("enableRingTone") && notification.getBoolean("enableRingTone")){

0 commit comments

Comments
 (0)