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 #if !ENABLED_TAP_GESTURE_RECOGNIZER_MAUI_EMBEDDED_WORKAROUND
public async void DismissLockAndContinue() public async void DismissLockAndContinue()
{ {
ClipLogger.Log("Dismiss lock and continue");
DismissViewController(false, async () => await OnLockDismissedAsync()); DismissViewController(false, async () => await OnLockDismissedAsync());
} }

View file

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