1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 16:23:29 +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, NoFooter = true,
Root = new TableRoot Root = new TableRoot
{ {
new TableSection(" ") new TableSection(Helpers.GetEmptyTableSectionTitle())
{ {
PasswordCell PasswordCell
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -7,6 +7,7 @@ using Bit.App.Resources;
using Xamarin.Forms; using Xamarin.Forms;
using XLabs.Ioc; using XLabs.Ioc;
using FFImageLoading.Forms; using FFImageLoading.Forms;
using Bit.App.Utilities;
namespace Bit.App.Pages namespace Bit.App.Pages
{ {
@@ -38,7 +39,7 @@ namespace Bit.App.Pages
ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools.png"); ShareCell = new ToolsViewCell(AppResources.ShareVault, AppResources.ShareVaultDescription, "share_tools.png");
ImportCell = new ToolsViewCell(AppResources.ImportItems, AppResources.ImportItemsDescription, "cloudup.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) if(Device.RuntimePlatform == Device.iOS)
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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