Exemplo n.º 1
0
        private async Task UpdateAuthenticators(bool updateSource = true)
        {
            _progressBar.Visibility = ViewStates.Visible;
            await _authSource.UpdateTask;

            if (updateSource)
            {
                await _authSource.UpdateSource();
            }

            _authAdapter.NotifyDataSetChanged();
            CheckEmptyState();
            _authList.ScheduleLayoutAnimation();

            var animation = new AlphaAnimation(1.0f, 0.0f)
            {
                Duration = 200
            };

            animation.AnimationEnd += (sender, e) => { _progressBar.Visibility = ViewStates.Invisible; };
            _progressBar.StartAnimation(animation);
        }