mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
Changed all C# control flow block statements to include space between keyword and open paren (#800)
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Bit.App.Pages
|
||||
};
|
||||
Children.Add(settingsPage);
|
||||
|
||||
if(Device.RuntimePlatform == Device.Android)
|
||||
if (Device.RuntimePlatform == Device.Android)
|
||||
{
|
||||
Effects.Add(new TabBarEffect());
|
||||
|
||||
@@ -43,12 +43,12 @@ namespace Bit.App.Pages
|
||||
Xamarin.Forms.PlatformConfiguration.AndroidSpecific.TabbedPage.SetIsSmoothScrollEnabled(this, false);
|
||||
}
|
||||
|
||||
if(appOptions?.GeneratorTile ?? false)
|
||||
if (appOptions?.GeneratorTile ?? false)
|
||||
{
|
||||
appOptions.GeneratorTile = false;
|
||||
ResetToGeneratorPage();
|
||||
}
|
||||
else if(appOptions?.MyVaultTile ?? false)
|
||||
else if (appOptions?.MyVaultTile ?? false)
|
||||
{
|
||||
appOptions.MyVaultTile = false;
|
||||
}
|
||||
@@ -66,17 +66,17 @@ namespace Bit.App.Pages
|
||||
|
||||
protected async override void OnCurrentPageChanged()
|
||||
{
|
||||
if(CurrentPage is NavigationPage navPage)
|
||||
if (CurrentPage is NavigationPage navPage)
|
||||
{
|
||||
if(navPage.RootPage is GroupingsPage groupingsPage)
|
||||
if (navPage.RootPage is GroupingsPage groupingsPage)
|
||||
{
|
||||
// Load something?
|
||||
}
|
||||
else if(navPage.RootPage is GeneratorPage genPage)
|
||||
else if (navPage.RootPage is GeneratorPage genPage)
|
||||
{
|
||||
await genPage.InitAsync();
|
||||
}
|
||||
else if(navPage.RootPage is SettingsPage settingsPage)
|
||||
else if (navPage.RootPage is SettingsPage settingsPage)
|
||||
{
|
||||
await settingsPage.InitAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user