Skip to content

Commit

Permalink
Merge pull request #90 from maretana/patch-1
Browse files Browse the repository at this point in the history
Update AlarmDismissReceiver.java
  • Loading branch information
emekalites authored Oct 5, 2020
2 parents 19fcb2d + 454917a commit 63d9d74
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
public class AlarmDismissReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
AlarmUtil alarmUtil = new AlarmUtil((Application) context.getApplicationContext());
try {
AlarmUtil alarmUtil = new AlarmUtil((Application) context.getApplicationContext());

if (ANModule.getReactAppContext() != null) {
int notificationId = intent.getExtras().getInt(Constants.DISMISSED_NOTIFICATION_ID);
ANModule.getReactAppContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit("OnNotificationDismissed", "{\"id\": \"" + notificationId + "\"}");
Expand Down

0 comments on commit 63d9d74

Please sign in to comment.