adjust debugging

This commit is contained in:
2021-08-12 09:07:30 +08:00
parent c224bed1f4
commit 3152f47db5
3 changed files with 8 additions and 6 deletions

View File

@@ -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;