mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-25 12:05:59 +01:00
Some debug logs. Adjusting animations.
This commit is contained in:
parent
7f5d371bf3
commit
81473cbefe
@ -125,8 +125,10 @@ namespace Bit.iOS.Extension
|
|||||||
|
|
||||||
public void DismissLockAndContinue()
|
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);
|
PerformSegue("siteListSegue", this);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ using MobileCoreServices;
|
|||||||
using Bit.App.Abstractions;
|
using Bit.App.Abstractions;
|
||||||
using Bit.iOS.Core.Utilities;
|
using Bit.iOS.Core.Utilities;
|
||||||
using Bit.App.Resources;
|
using Bit.App.Resources;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace Bit.iOS.Extension
|
namespace Bit.iOS.Extension
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ namespace Bit.iOS.Extension
|
|||||||
{
|
{
|
||||||
if(PinTextField.Text == _authService.PIN)
|
if(PinTextField.Text == _authService.PIN)
|
||||||
{
|
{
|
||||||
|
Debug.WriteLine("BW Log, Start Dismiss PIN controller.");
|
||||||
PinTextField.ResignFirstResponder();
|
PinTextField.ResignFirstResponder();
|
||||||
LoadingViewController.DismissLockAndContinue();
|
LoadingViewController.DismissLockAndContinue();
|
||||||
}
|
}
|
||||||
|
@ -29,9 +29,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<connections>
|
<connections>
|
||||||
<segue destination="oCZ-GQ-aOK" kind="show" identifier="siteListSegue" id="1679"/>
|
<segue destination="oCZ-GQ-aOK" kind="show" identifier="siteListSegue" id="1679"/>
|
||||||
<segue id="8446" destination="6512" kind="presentation" identifier="lockFingerprintSegue" animates="NO"/>
|
<segue id="8446" destination="6512" kind="presentation" identifier="lockFingerprintSegue"/>
|
||||||
<segue id="8924" destination="6815" kind="presentation" identifier="lockPinSegue" animates="NO"/>
|
<segue id="8924" destination="6815" kind="presentation" identifier="lockPinSegue"/>
|
||||||
<segue id="9874" destination="6855" kind="presentation" identifier="lockPasswordSegue" animates="NO"/>
|
<segue id="9874" destination="6855" kind="presentation" identifier="lockPasswordSegue"/>
|
||||||
<segue id="10498" destination="1845" kind="presentation" identifier="newSiteSegue" modalPresentationStyle="" modalTransitionStyle=""/>
|
<segue id="10498" destination="1845" kind="presentation" identifier="newSiteSegue" modalPresentationStyle="" modalTransitionStyle=""/>
|
||||||
</connections>
|
</connections>
|
||||||
</viewController>
|
</viewController>
|
||||||
|
@ -31,6 +31,9 @@ namespace Bit.iOS.Extension
|
|||||||
{
|
{
|
||||||
base.ViewDidLoad();
|
base.ViewDidLoad();
|
||||||
|
|
||||||
|
Debug.WriteLine("BW LOG, Site list ViewDidLoad.");
|
||||||
|
var sw = Stopwatch.StartNew();
|
||||||
|
|
||||||
IEnumerable<SiteViewModel> filteredSiteModels = new List<SiteViewModel>();
|
IEnumerable<SiteViewModel> filteredSiteModels = new List<SiteViewModel>();
|
||||||
if(Context.DomainName != null)
|
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);
|
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.RowHeight = UITableView.AutomaticDimension;
|
||||||
TableView.EstimatedRowHeight = 44;
|
TableView.EstimatedRowHeight = 44;
|
||||||
TableView.Source = new TableSource(filteredSiteModels, this);
|
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)
|
partial void CancelBarButton_Activated(UIBarButtonItem sender)
|
||||||
|
Loading…
Reference in New Issue
Block a user