Revert "try new http client handler for icons"

This reverts commit c099f82752.
This commit is contained in:
Kyle Spearrin 2019-11-22 08:24:23 -05:00
parent c099f82752
commit 46a75a2944
2 changed files with 1 additions and 14 deletions

View file

@ -74,7 +74,6 @@
<Reference Include="Mono.Android.Export" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>

View file

@ -16,7 +16,6 @@ using Bit.Droid.Utilities;
using Plugin.CurrentActivity;
using Plugin.Fingerprint;
using Xamarin.Android.Net;
using System.Net.Http;
#if !FDROID
using Android.Gms.Security;
#endif
@ -79,8 +78,7 @@ namespace Bit.Droid
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
{
FadeAnimationEnabled = false,
FadeAnimationForCachedImages = false,
HttpClient = new HttpClient(new AndroidHttpImageClientHandler())
FadeAnimationForCachedImages = false
});
ZXing.Net.Mobile.Forms.Android.Platform.Init();
});
@ -146,15 +144,5 @@ namespace Bit.Droid
Constants.DisableFaviconKey, disableFavicon);
await ServiceContainer.Resolve<IEnvironmentService>("environmentService").SetUrlsFromStorageAsync();
}
public class AndroidHttpImageClientHandler : HttpClientHandler
{
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request,
System.Threading.CancellationToken cancellationToken)
{
request.Version = new Version(1, 0);
return await base.SendAsync(request, cancellationToken);
}
}
}
}