adjust debugging
This commit is contained in:
@ -91,6 +91,7 @@ namespace Gallery.Resources.UI
|
|||||||
}
|
}
|
||||||
else if (model.StartsWith("iPad"))
|
else if (model.StartsWith("iPad"))
|
||||||
{
|
{
|
||||||
|
_isFullscreenDevice = false;
|
||||||
var vs = model[4..].Split(',');
|
var vs = model[4..].Split(',');
|
||||||
if (vs.Length == 2 && int.TryParse(vs[0], out int main) && int.TryParse(vs[1], out int sub))
|
if (vs.Length == 2 && int.TryParse(vs[0], out int main) && int.TryParse(vs[1], out int sub))
|
||||||
{
|
{
|
||||||
@ -99,10 +100,6 @@ namespace Gallery.Resources.UI
|
|||||||
var flag = main == 8 || (main == 13 && sub >= 4 && sub < 12);
|
var flag = main == 8 || (main == 13 && sub >= 4 && sub < 12);
|
||||||
_isBottomPadding = flag;
|
_isBottomPadding = flag;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
_isFullscreenDevice = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -469,13 +469,17 @@ namespace Gallery.Resources.UI
|
|||||||
{
|
{
|
||||||
item.PreviewImage = Definition.DownloadBackground;
|
item.PreviewImage = Definition.DownloadBackground;
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
System.Threading.Thread.Sleep(500);
|
var model = Xamarin.Essentials.DeviceInfo.Model;
|
||||||
#else
|
if (model.StartsWith("iPhone") || model.StartsWith("iPad"))
|
||||||
|
{
|
||||||
|
#endif
|
||||||
var image = Store.LoadPreviewImage(item.PreviewUrl, true, force: true).Result;
|
var image = Store.LoadPreviewImage(item.PreviewUrl, true, force: true).Result;
|
||||||
if (image != null)
|
if (image != null)
|
||||||
{
|
{
|
||||||
item.PreviewImage = image;
|
item.PreviewImage = image;
|
||||||
}
|
}
|
||||||
|
#if DEBUG
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -60,6 +60,7 @@
|
|||||||
<MtouchInterpreter>-all</MtouchInterpreter>
|
<MtouchInterpreter>-all</MtouchInterpreter>
|
||||||
<CodesignProvision>Gallery.Dev</CodesignProvision>
|
<CodesignProvision>Gallery.Dev</CodesignProvision>
|
||||||
<LangVersion>9.0</LangVersion>
|
<LangVersion>9.0</LangVersion>
|
||||||
|
<MtouchFastDev>true</MtouchFastDev>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
Reference in New Issue
Block a user