private void OnViewPagerPageSelected(object sender, ViewPager.PageSelectedEventArgs e) { if (e.Position != MainPagerAdapter.LogPosition) { ((MainPagerAdapter)viewPager.Adapter).LogFragment.CloseActionMode(); } ToggleTimerDuration(); }
private async void OnPageSelected(object sender, ViewPager.PageSelectedEventArgs e) { var adapter = (MainPagerAdapter)viewPager.Adapter; var frag = (ReportsFragment)adapter.GetItem(e.Position); if (frag.IsError) { await frag.ReloadData(); } frag.UserVisibleHint = true; backDate = e.Position - StartPage; UpdatePeriod(); }