use current.mainpage
This commit is contained in:
parent
48c51173a1
commit
0aa1359ad4
|
@ -75,12 +75,12 @@ namespace Bit.App
|
||||||
{
|
{
|
||||||
if(!string.IsNullOrWhiteSpace(details.CancelText))
|
if(!string.IsNullOrWhiteSpace(details.CancelText))
|
||||||
{
|
{
|
||||||
confirmed = await MainPage.DisplayAlert(details.Title, details.Text, confirmText,
|
confirmed = await Current.MainPage.DisplayAlert(details.Title, details.Text, confirmText,
|
||||||
details.CancelText);
|
details.CancelText);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
await MainPage.DisplayAlert(details.Title, details.Text, confirmText);
|
await Current.MainPage.DisplayAlert(details.Title, details.Text, confirmText);
|
||||||
}
|
}
|
||||||
_messagingService.Send("showDialogResolve", new Tuple<int, bool>(details.DialogId, confirmed));
|
_messagingService.Send("showDialogResolve", new Tuple<int, bool>(details.DialogId, confirmed));
|
||||||
});
|
});
|
||||||
|
@ -88,7 +88,7 @@ namespace Bit.App
|
||||||
else if(message.Command == "locked")
|
else if(message.Command == "locked")
|
||||||
{
|
{
|
||||||
await _stateService.PurgeAsync();
|
await _stateService.PurgeAsync();
|
||||||
Device.BeginInvokeOnMainThread(() => MainPage = new NavigationPage(new LockPage()));
|
Device.BeginInvokeOnMainThread(() => Current.MainPage = new NavigationPage(new LockPage()));
|
||||||
}
|
}
|
||||||
else if(message.Command == "lockVault")
|
else if(message.Command == "lockVault")
|
||||||
{
|
{
|
||||||
|
@ -182,7 +182,7 @@ namespace Bit.App
|
||||||
{
|
{
|
||||||
// TODO: Toast?
|
// TODO: Toast?
|
||||||
}
|
}
|
||||||
MainPage = new HomePage();
|
Current.MainPage = new HomePage();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ namespace Bit.App
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
SetCulture();
|
SetCulture();
|
||||||
ThemeManager.SetTheme();
|
ThemeManager.SetTheme();
|
||||||
MainPage = new HomePage();
|
Current.MainPage = new HomePage();
|
||||||
var mainPageTask = SetMainPageAsync();
|
var mainPageTask = SetMainPageAsync();
|
||||||
ServiceContainer.Resolve<MobilePlatformUtilsService>("platformUtilsService").Init();
|
ServiceContainer.Resolve<MobilePlatformUtilsService>("platformUtilsService").Init();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue