Skip to content

System.ArgumentException: The key already existed in the dictionary. #174

@anatolii-bohdanov

Description

@anatolii-bohdanov

Good day!

Version: 3.3.2
Exception: System.ArgumentException: 'The key already existed in the dictionary.' from SnackbarNotification.
Stack trace:
IDictionary<TKey,TValue>.Add (TKey key, TValue value) SnackbarNotification.ToastClosed (System.String id, Plugin.Toasts.NotificationResult result) SnackbarNotification.<Notify>b__5_2 (System.String toastId, Plugin.Toasts.NotificationResult result) ToastCallback.OnDismissed (Android.Support.Design.Widget.Snackbar snackbar, System.Int32 evt) Snackbar+Callback.n_OnDismissed_Landroid_support_design_widget_Snackbar_I (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_transientBottomBar, System.Int32 e)

We call a Notify method from ToastNotification class in several threads. I think that we catch a situation when we have the same id on line

and after that we call CancelAllDelivered method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions