From 81473cbefe7212736f529a9e2c2dfafe664a5211 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 21 Jul 2016 20:59:55 -0400 Subject: [PATCH] Some debug logs. Adjusting animations. --- src/iOS.Extension/LoadingViewController.cs | 4 +++- src/iOS.Extension/LockPinViewController.cs | 2 ++ src/iOS.Extension/MainInterface.storyboard | 6 +++--- src/iOS.Extension/SiteListViewController.cs | 8 ++++++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/iOS.Extension/LoadingViewController.cs b/src/iOS.Extension/LoadingViewController.cs index e3c1070c8..6d07185f0 100644 --- a/src/iOS.Extension/LoadingViewController.cs +++ b/src/iOS.Extension/LoadingViewController.cs @@ -125,8 +125,10 @@ namespace Bit.iOS.Extension public void DismissLockAndContinue() { - DismissViewController(true, () => + Debug.WriteLine("BW Log, Dismissing lock controller."); + DismissViewController(false, () => { + Debug.WriteLine("BW Log, Segue to site list."); PerformSegue("siteListSegue", this); }); } diff --git a/src/iOS.Extension/LockPinViewController.cs b/src/iOS.Extension/LockPinViewController.cs index 49e3dce78..595555b23 100644 --- a/src/iOS.Extension/LockPinViewController.cs +++ b/src/iOS.Extension/LockPinViewController.cs @@ -8,6 +8,7 @@ using MobileCoreServices; using Bit.App.Abstractions; using Bit.iOS.Core.Utilities; using Bit.App.Resources; +using System.Diagnostics; namespace Bit.iOS.Extension { @@ -58,6 +59,7 @@ namespace Bit.iOS.Extension { if(PinTextField.Text == _authService.PIN) { + Debug.WriteLine("BW Log, Start Dismiss PIN controller."); PinTextField.ResignFirstResponder(); LoadingViewController.DismissLockAndContinue(); } diff --git a/src/iOS.Extension/MainInterface.storyboard b/src/iOS.Extension/MainInterface.storyboard index ee6a8738c..bba60420d 100644 --- a/src/iOS.Extension/MainInterface.storyboard +++ b/src/iOS.Extension/MainInterface.storyboard @@ -29,9 +29,9 @@ - - - + + + diff --git a/src/iOS.Extension/SiteListViewController.cs b/src/iOS.Extension/SiteListViewController.cs index 48405f3c9..5a2b1fc7e 100644 --- a/src/iOS.Extension/SiteListViewController.cs +++ b/src/iOS.Extension/SiteListViewController.cs @@ -31,6 +31,9 @@ namespace Bit.iOS.Extension { base.ViewDidLoad(); + Debug.WriteLine("BW LOG, Site list ViewDidLoad."); + var sw = Stopwatch.StartNew(); + IEnumerable filteredSiteModels = new List(); if(Context.DomainName != null) { @@ -40,9 +43,14 @@ namespace Bit.iOS.Extension filteredSiteModels = siteModels.Where(s => s.Domain != null && s.Domain.BaseDomain == Context.DomainName.BaseDomain); } + Debug.WriteLine("BW LOG, Filtered sites at " + sw.ElapsedMilliseconds + "ms."); + TableView.RowHeight = UITableView.AutomaticDimension; TableView.EstimatedRowHeight = 44; TableView.Source = new TableSource(filteredSiteModels, this); + + Debug.WriteLine("BW LOG, Set TableView srouce at " + sw.ElapsedMilliseconds + "ms."); + sw.Stop(); } partial void CancelBarButton_Activated(UIBarButtonItem sender)