adjust debugging
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user