dismiss notification when accepting a TBR request

This commit is contained in:
Sebastian Lenz 2018-07-25 23:28:15 +02:00
parent e6261c4fa7
commit 2db63d4be4

View file

@ -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();