Enumerate copy so list can be mutated w\o throwing (#2828)
- fixes #2576
This commit is contained in:
Родитель
6be203ab2e
Коммит
ec964de0ca
|
@ -15,7 +15,7 @@ namespace Xamarin.Forms.Internals
|
|||
if (predicate == null)
|
||||
predicate = x => true;
|
||||
|
||||
foreach (IGestureRecognizer item in gestures)
|
||||
foreach (IGestureRecognizer item in new List<IGestureRecognizer>(gestures))
|
||||
{
|
||||
var gesture = item as T;
|
||||
if (gesture != null && predicate(gesture))
|
||||
|
|
Загрузка…
Ссылка в новой задаче