diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index f844c11609..390a746e55 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -765,6 +765,10 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, } }); FabricPrivacy.getInstance().logCustom(new CustomEvent("AcceptTemp")); + // dismiss notifications + NotificationManager notificationManager = + (NotificationManager) MainApp.instance().getSystemService(Context.NOTIFICATION_SERVICE); + notificationManager.cancel(Constants.notificationID); }); builder.setNegativeButton(MainApp.gs(R.string.cancel), null); builder.show();