Example #1
0
        protected override void PublishResults(ICharSequence constraint, FilterResults results)
        {
            if (results.Count > 0)
            {
                var pairs = results.Values.JavaCast <JavaList>().ToArray();
                placesMap = new Dictionary <string, string>();
                foreach (Pair p in pairs)
                {
                    placesMap.Add(p.First.ToString(), p.Second.ToString());
                }

                //var pairs2 = results.Values.JavaCast<JavaList>();
                //placesMap = results.Values.JavaCast<JavaList>().ToArray<Pair>().ToDictionary(x => x.First.ToString(), x => x.Second.ToString());
                adapter.NotifyDataSetChanged();
            }
            else
            {
                adapter.NotifyDataSetInvalidated();
            }
        }
 //@Override
 public override void NotifyDataSetInvalidated()
 {
     mDecoratedBaseAdapter.NotifyDataSetInvalidated();
 }