adjust debugging
This commit is contained in:
parent
c224bed1f4
commit
3152f47db5
@ -91,6 +91,7 @@ namespace Gallery.Resources.UI
|
||||
}
|
||||
else if (model.StartsWith("iPad"))
|
||||
{
|
||||
_isFullscreenDevice = false;
|
||||
var vs = model[4..].Split(',');
|
||||
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);
|
||||
_isBottomPadding = flag;
|
||||
}
|
||||
else
|
||||
{
|
||||
_isFullscreenDevice = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -469,13 +469,17 @@ namespace Gallery.Resources.UI
|
||||
{
|
||||
item.PreviewImage = Definition.DownloadBackground;
|
||||
#if DEBUG
|
||||
System.Threading.Thread.Sleep(500);
|
||||
#else
|
||||
var model = Xamarin.Essentials.DeviceInfo.Model;
|
||||
if (model.StartsWith("iPhone") || model.StartsWith("iPad"))
|
||||
{
|
||||
#endif
|
||||
var image = Store.LoadPreviewImage(item.PreviewUrl, true, force: true).Result;
|
||||
if (image != null)
|
||||
{
|
||||
item.PreviewImage = image;
|
||||
}
|
||||
#if DEBUG
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return true;
|
||||
|
@ -60,6 +60,7 @@
|
||||
<MtouchInterpreter>-all</MtouchInterpreter>
|
||||
<CodesignProvision>Gallery.Dev</CodesignProvision>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<MtouchFastDev>true</MtouchFastDev>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
Loading…
x
Reference in New Issue
Block a user