1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-25 12:05:59 +01:00

PM-3350 Cleared left ClipLogger from the iOS extensions debug logging.

This commit is contained in:
Federico Maccaroni 2023-12-07 18:14:02 -03:00
parent 15a306490d
commit 19c393842f
No known key found for this signature in database
GPG Key ID: 5D233F8F2B034536
2 changed files with 0 additions and 16 deletions

View File

@ -251,8 +251,6 @@ namespace Bit.iOS.Autofill
#if !ENABLED_TAP_GESTURE_RECOGNIZER_MAUI_EMBEDDED_WORKAROUND
public async void DismissLockAndContinue()
{
ClipLogger.Log("Dismiss lock and continue");
DismissViewController(false, async () => await OnLockDismissedAsync());
}

View File

@ -17,17 +17,14 @@ namespace Bit.iOS.Extension
public void InitWithContext(Context context)
{
ClipLogger.Log($"InitWithContext: {context?.UrlString}");
_context = context;
_shouldInitialize = false;
}
public void DismissLockAndContinue()
{
ClipLogger.Log("DismissLockAndContinue");
if (UIApplication.SharedApplication.KeyWindow is null)
{
ClipLogger.Log("KeyWindow is null");
return;
}
@ -38,25 +35,14 @@ namespace Bit.iOS.Extension
var rootVC = navContr.ViewControllers.FirstOrDefault();
if (rootVC is LoadingViewController loadingVC)
{
ClipLogger.Log("Re-initing");
loadingVC.InitWithContext(_context);
loadingVC.ContinueOn();
}
else
{
ClipLogger.Log($"Not LVC: {rootVC?.GetType().FullName}");
}
}
else
{
ClipLogger.Log($"DismissLockAndContinue RVC not correct: {UIApplication.SharedApplication.KeyWindow?.RootViewController?.GetType().FullName}");
}
ClipLogger.Log("DismissLockAndContinue Done");
}
private void NavigateToPage(ContentPage page)
{
ClipLogger.Log($"NavigateToPage {page?.GetType().FullName}");
var navigationPage = new NavigationPage(page);
var window = new Window(navigationPage);