1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00:00

Changed all C# control flow block statements to include space between keyword and open paren (#800)

This commit is contained in:
Chad Scharf
2020-03-28 09:16:28 -04:00
committed by GitHub
parent 6c00ac43fc
commit 3c18fd7636
225 changed files with 2406 additions and 2406 deletions

View File

@@ -23,9 +23,9 @@ namespace Bit.App.Pages
_fromTabPage = fromTabPage;
_selectAction = selectAction;
var isIos = Device.RuntimePlatform == Device.iOS;
if(selectAction != null)
if (selectAction != null)
{
if(isIos)
if (isIos)
{
ToolbarItems.Add(_closeItem);
}
@@ -33,7 +33,7 @@ namespace Bit.App.Pages
}
else
{
if(isIos)
if (isIos)
{
ToolbarItems.Add(_moreItem);
}
@@ -42,7 +42,7 @@ namespace Bit.App.Pages
ToolbarItems.Add(_historyItem);
}
}
if(isIos)
if (isIos)
{
_typePicker.On<iOS>().SetUpdateMode(UpdateMode.WhenFinished);
}
@@ -56,7 +56,7 @@ namespace Bit.App.Pages
protected async override void OnAppearing()
{
base.OnAppearing();
if(!_fromTabPage)
if (!_fromTabPage)
{
await InitAsync();
}
@@ -64,7 +64,7 @@ namespace Bit.App.Pages
protected override bool OnBackButtonPressed()
{
if(Device.RuntimePlatform == Device.Android && _tabsPage != null)
if (Device.RuntimePlatform == Device.Android && _tabsPage != null)
{
_tabsPage.ResetToVaultPage();
return true;
@@ -84,13 +84,13 @@ namespace Bit.App.Pages
private async void More_Clicked(object sender, EventArgs e)
{
if(!DoOnce())
if (!DoOnce())
{
return;
}
var selection = await DisplayActionSheet(AppResources.Options, AppResources.Cancel,
null, AppResources.PasswordHistory);
if(selection == AppResources.PasswordHistory)
if (selection == AppResources.PasswordHistory)
{
var page = new GeneratorHistoryPage();
await Navigation.PushModalAsync(new Xamarin.Forms.NavigationPage(page));
@@ -115,7 +115,7 @@ namespace Bit.App.Pages
private async void Close_Clicked(object sender, EventArgs e)
{
if(DoOnce())
if (DoOnce())
{
await Navigation.PopModalAsync();
}