1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-11 05:43:30 +00:00

move settings pages to modals instead of navigation pages

This commit is contained in:
Kyle Spearrin
2017-02-08 19:18:34 -05:00
parent a429dcf978
commit 230722945e
6 changed files with 32 additions and 6 deletions

View File

@@ -244,12 +244,12 @@ namespace Bit.App.Pages
private void SyncCell_Tapped(object sender, EventArgs e)
{
Navigation.PushAsync(new SettingsSyncPage());
Navigation.PushModalAsync(new ExtendedNavigationPage(new SettingsSyncPage()));
}
private void AboutCell_Tapped(object sender, EventArgs e)
{
Navigation.PushAsync(new SettingsAboutPage());
Navigation.PushModalAsync(new ExtendedNavigationPage(new SettingsAboutPage()));
}
private void RateCell_Tapped(object sender, EventArgs e)
@@ -268,7 +268,7 @@ namespace Bit.App.Pages
private void HelpCell_Tapped(object sender, EventArgs e)
{
Navigation.PushAsync(new SettingsHelpPage());
Navigation.PushModalAsync(new ExtendedNavigationPage(new SettingsHelpPage()));
}
private void LockCell_Tapped(object sender, EventArgs e)
@@ -342,7 +342,7 @@ namespace Bit.App.Pages
cell.On = false;
var pinPage = new SettingsPinPage();
pinPage.OnPinEntered += PinEntered;
Navigation.PushAsync(pinPage);
Navigation.PushModalAsync(new ExtendedNavigationPage(pinPage));
}
else if(!cell.On)
{
@@ -353,7 +353,8 @@ namespace Bit.App.Pages
private void PinEntered(object sender, EventArgs args)
{
var page = sender as SettingsPinPage;
page.Navigation.PopAsync();
page.PinControl.Entry.Unfocus();
page.Navigation.PopModalAsync();
_authService.PIN = page.Model.PIN;
@@ -369,7 +370,7 @@ namespace Bit.App.Pages
private void FoldersCell_Tapped(object sender, EventArgs e)
{
Navigation.PushAsync(new SettingsListFoldersPage());
Navigation.PushModalAsync(new ExtendedNavigationPage(new SettingsListFoldersPage()));
}
private string GetLockOptionsDetailsText()