public override async void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
var appdel = DocumentAppDelegate.Shared;
UpdateToolbar (animated);
//
// Style the navigation controller
//
if (NavigationController != null) {
NavigationController.SetNavigationBarHidden (false, animated);
appdel.Theme.Apply (NavigationController);
}
//
// Create the auto time refresher
//
refreshTimer = NSTimer.CreateRepeatingScheduledTimer (RefreshListTimesInterval, RefreshListTimes);
//
// Update the sort order
//
var currentSort = DocumentAppDelegate.Shared.Settings.DocumentsSort;
if (docsView.Sort != currentSort) {
forcingSort = true;
docsView.Sort = currentSort;
forcingSort = false;
}
//
// Update the view
//
await LoadDocs ();
//
// Show which doc is open
//
SetOpenedDocument (appdel.OpenedDocIndex, animated);
}