* Pixiview.iOS/Renderers/AdaptedPageRenderer.cs: fixed: status bar

hidden issue when startup with landscape

* Pixiview/MainPage.xaml:
* Pixiview/MainPage.xaml.cs: feature: add illust command

* Pixiview/UI/CardView.cs: feature: resize height when measure card
  view.

* Pixiview/Utils/Stores.cs: fixed: update working dirs
This commit is contained in:
2020-05-05 15:04:18 +08:00
parent 1bbfdb6477
commit d40dfccc07
5 changed files with 80 additions and 23 deletions

View File

@ -54,12 +54,12 @@ namespace Pixiview.iOS.Renderers
{
if (style == UIStatusBarStyle.BlackOpaque)
{
UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Fade);
UIApplication.SharedApplication.SetStatusBarHidden(true, true);
}
else
{
UIApplication.SharedApplication.SetStatusBarStyle(style, true);
UIApplication.SharedApplication.SetStatusBarHidden(false, UIStatusBarAnimation.Fade);
UIApplication.SharedApplication.SetStatusBarHidden(false, true);
}
SetNeedsStatusBarAppearanceUpdate();
@ -93,6 +93,14 @@ namespace Pixiview.iOS.Renderers
if (lastOrientation != current)
{
lastOrientation = current;
if (current == UIDeviceOrientation.Portrait && UIApplication.SharedApplication.StatusBarHidden)
{
var style = ConvertStyle(StatusBar.GetStatusBarStyle(Element));
if (style != UIStatusBarStyle.BlackOpaque)
{
UIApplication.SharedApplication.SetStatusBarHidden(false, true);
}
}
if (Element is AdaptedPage page)
{
page.OnOrientationChanged((Orientation)lastOrientation);