This project has moved and is read-only. For the latest updates, please go here.
1

Closed

Android NavigationService GetAndRemoveParameter doesn't remove the parameter

description

It returns it but doesn't remove it from the dictionary.
public object GetAndRemoveParameter(Intent intent)
{
    if (intent == null)
    {
       throw new ArgumentNullException("intent", "This method must be called with a valid Activity intent");
    }

    var key = intent.GetStringExtra(ParameterKeyName);

    if (string.IsNullOrEmpty(key))
    {
       return null;
    }

    lock (_parametersByKey)
    {
        if (_parametersByKey.ContainsKey(key))
        {
            return _parametersByKey[key];
        }

        return null;
    }
}
Closed Jul 20, 2016 at 9:03 AM by lbugnion
Fixed in V5.3.0

comments