From 39187732c035b22702dff61645674aa5801b7068 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Thu, 7 Mar 2024 11:04:00 -0300 Subject: [PATCH] [PM-6474] Remove header on Save passkey as new login (#3054) * PM-6474 Removed header on empty list view on iOS Autofill create passkey flow * PM-6474 Fix TableView being hidden on Logins scene --- src/iOS.Autofill/LoginListViewController.cs | 4 -- .../LoginListViewController.designer.cs | 16 -------- src/iOS.Autofill/MainInterface.storyboard | 40 +------------------ 3 files changed, 2 insertions(+), 58 deletions(-) diff --git a/src/iOS.Autofill/LoginListViewController.cs b/src/iOS.Autofill/LoginListViewController.cs index de6019c38..663963782 100644 --- a/src/iOS.Autofill/LoginListViewController.cs +++ b/src/iOS.Autofill/LoginListViewController.cs @@ -80,7 +80,6 @@ namespace Bit.iOS.Autofill if (Context.IsCreatingPasskey) { - _headerLabel.Text = AppResources.ChooseALoginToSaveThisPasskeyTo; _emptyViewLabel.Text = string.Format(AppResources.NoItemsForUri, Context.UrlString); _emptyViewButton.SetTitle(AppResources.SavePasskeyAsNewLogin, UIControlState.Normal); @@ -88,8 +87,6 @@ namespace Bit.iOS.Autofill _emptyViewButton.Layer.BorderColor = UIColor.FromName(ColorConstants.LIGHT_TEXT_MUTED).CGColor; _emptyViewButton.Layer.CornerRadius = 10; _emptyViewButton.ClipsToBounds = true; - - _headerView.Hidden = false; } _alreadyLoadItemsOnce = true; @@ -266,7 +263,6 @@ namespace Bit.iOS.Autofill public void OnEmptyList() { _emptyView.Hidden = false; - _headerView.Hidden = false; TableView.Hidden = true; } diff --git a/src/iOS.Autofill/LoginListViewController.designer.cs b/src/iOS.Autofill/LoginListViewController.designer.cs index cb6929688..82c06d363 100644 --- a/src/iOS.Autofill/LoginListViewController.designer.cs +++ b/src/iOS.Autofill/LoginListViewController.designer.cs @@ -24,12 +24,6 @@ namespace Bit.iOS.Autofill [Outlet] UIKit.UILabel _emptyViewLabel { get; set; } - [Outlet] - UIKit.UILabel _headerLabel { get; set; } - - [Outlet] - UIKit.UIView _headerView { get; set; } - [Outlet] [GeneratedCode ("iOS Designer", "1.0")] UIKit.UIBarButtonItem AddBarButton { get; set; } @@ -78,16 +72,6 @@ namespace Bit.iOS.Autofill _emptyViewLabel = null; } - if (_headerLabel != null) { - _headerLabel.Dispose (); - _headerLabel = null; - } - - if (_headerView != null) { - _headerView.Dispose (); - _headerView = null; - } - if (AddBarButton != null) { AddBarButton.Dispose (); AddBarButton = null; diff --git a/src/iOS.Autofill/MainInterface.storyboard b/src/iOS.Autofill/MainInterface.storyboard index 98a361f20..bc59c7347 100644 --- a/src/iOS.Autofill/MainInterface.storyboard +++ b/src/iOS.Autofill/MainInterface.storyboard @@ -132,36 +132,8 @@ - @@ -287,8 +256,6 @@ - - @@ -659,9 +626,6 @@ - - -