1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 08:13:20 +00:00

helper for empty header value

This commit is contained in:
Kyle Spearrin
2017-11-20 22:39:49 -05:00
parent e3e833d8c0
commit cfe34355bd
17 changed files with 46 additions and 29 deletions

View File

@@ -50,7 +50,7 @@ namespace Bit.App.Pages
NoFooter = true,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
PasswordCell
}

View File

@@ -76,7 +76,7 @@ namespace Bit.App.Pages
VerticalOptions = LayoutOptions.Start,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
EmailCell,
PasswordCell

View File

@@ -130,7 +130,7 @@ namespace Bit.App.Pages
TokenCell.Entry.ReturnType = ReturnType.Go;
var table = new TwoFactorTable(
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
TokenCell,
RememberCell
@@ -209,7 +209,7 @@ namespace Bit.App.Pages
});
var table = new TwoFactorTable(
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
RememberCell
});
@@ -240,7 +240,7 @@ namespace Bit.App.Pages
};
var table = new TwoFactorTable(
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
RememberCell
});

View File

@@ -50,7 +50,7 @@ namespace Bit.App.Pages
VerticalOptions = LayoutOptions.Start,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
EmailCell
}

View File

@@ -67,7 +67,7 @@ namespace Bit.App.Pages
{
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
EmailCell,
PasswordCell
@@ -89,7 +89,7 @@ namespace Bit.App.Pages
NoHeader = true,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
ConfirmPasswordCell,
PasswordHintCell

View File

@@ -5,6 +5,7 @@ using Bit.App.Abstractions;
using XLabs.Ioc;
using Bit.App.Resources;
using FFImageLoading.Forms;
using Bit.App.Utilities;
namespace Bit.App.Pages
{
@@ -59,7 +60,7 @@ namespace Bit.App.Pages
HasUnevenRows = true,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
CreditsCell
}

View File

@@ -8,6 +8,7 @@ using Plugin.Connectivity.Abstractions;
using Xamarin.Forms;
using XLabs.Ioc;
using System.Linq;
using Bit.App.Utilities;
namespace Bit.App.Pages
{
@@ -42,7 +43,7 @@ namespace Bit.App.Pages
HasUnevenRows = true,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
NameCell
}

View File

@@ -7,6 +7,7 @@ using Plugin.Connectivity.Abstractions;
using Xamarin.Forms;
using XLabs.Ioc;
using System.Linq;
using Bit.App.Utilities;
namespace Bit.App.Pages
{
@@ -55,11 +56,11 @@ namespace Bit.App.Pages
VerticalOptions = LayoutOptions.Start,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
NameCell
},
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
DeleteCell
}

View File

@@ -5,6 +5,7 @@ using Xamarin.Forms;
using XLabs.Ioc;
using Bit.App.Controls;
using Plugin.Settings.Abstractions;
using Bit.App.Utilities;
namespace Bit.App.Pages
{
@@ -49,7 +50,7 @@ namespace Bit.App.Pages
{
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
WebsiteIconsCell
}
@@ -66,7 +67,7 @@ namespace Bit.App.Pages
{
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
CopyTotpCell
}
@@ -83,7 +84,7 @@ namespace Bit.App.Pages
{
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
AnalyticsCell
}
@@ -150,7 +151,7 @@ namespace Bit.App.Pages
{
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
AutofillPersistNotificationCell
}
@@ -172,7 +173,7 @@ namespace Bit.App.Pages
{
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
AutofillPasswordFieldCell
}

View File

@@ -4,6 +4,7 @@ using Xamarin.Forms;
using Bit.App.Abstractions;
using XLabs.Ioc;
using Bit.App.Resources;
using Bit.App.Utilities;
namespace Bit.App.Pages
{
@@ -38,7 +39,7 @@ namespace Bit.App.Pages
{
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
EmailCell
}
@@ -61,7 +62,7 @@ namespace Bit.App.Pages
NoHeader = true,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
WebsiteCell
}
@@ -84,7 +85,7 @@ namespace Bit.App.Pages
NoHeader = true,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
BugCell
}

View File

@@ -7,6 +7,7 @@ using Bit.App.Resources;
using Xamarin.Forms;
using XLabs.Ioc;
using FFImageLoading.Forms;
using Bit.App.Utilities;
namespace Bit.App.Pages
{
@@ -38,7 +39,7 @@ namespace Bit.App.Pages
ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools.png");
ImportCell = new ToolsViewCell(AppResources.ImportItems, AppResources.ImportItemsDescription, "cloudup.png");
var section = new TableSection(" ") { GeneratorCell };
var section = new TableSection(Helpers.GetEmptyTableSectionTitle()) { GeneratorCell };
if(Device.RuntimePlatform == Device.iOS)
{

View File

@@ -74,7 +74,7 @@ namespace Bit.App.Pages
NoHeader = true,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
RegenerateCell,
CopyCell

View File

@@ -8,6 +8,7 @@ using Plugin.Connectivity.Abstractions;
using Plugin.Settings.Abstractions;
using Xamarin.Forms;
using XLabs.Ioc;
using Bit.App.Utilities;
namespace Bit.App.Pages
{
@@ -77,19 +78,19 @@ namespace Bit.App.Pages
EnableSelection = false,
Root = new TableRoot
{
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
UppercaseCell,
LowercaseCell,
NumbersCell,
SpecialCell
},
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
NumbersMinCell,
SpecialMinCell
},
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
AvoidAmbiguousCell
}

View File

@@ -359,7 +359,7 @@ namespace Bit.App.Pages
NameCell
};
MiddleSection = new TableSection(" ")
MiddleSection = new TableSection(Helpers.GetEmptyTableSectionTitle())
{
FolderCell,
FavoriteCell

View File

@@ -43,7 +43,7 @@ namespace Bit.App.Pages
private void Init()
{
FieldsSection = new TableSection(" ");
FieldsSection = new TableSection(Helpers.GetEmptyTableSectionTitle());
Table = new ExtendedTableView
{

View File

@@ -165,7 +165,7 @@ namespace Bit.App.Pages
NameCell
};
MiddleSection = new TableSection(" ")
MiddleSection = new TableSection(Helpers.GetEmptyTableSectionTitle())
{
FolderCell,
FavoriteCell,
@@ -415,7 +415,7 @@ namespace Bit.App.Pages
{
NotesCell
},
new TableSection(" ")
new TableSection(Helpers.GetEmptyTableSectionTitle())
{
DeleteCell
}

View File

@@ -56,5 +56,15 @@ namespace Bit.App.Utilities
return false;
}
public static string GetEmptyTableSectionTitle()
{
if(Device.RuntimePlatform == Device.iOS)
{
return null;
}
return " ";
}
}
}