diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index da488db56..0c2c1be45 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -68,6 +68,7 @@ + diff --git a/src/Android/MainApplication.cs b/src/Android/MainApplication.cs index b0c825656..32067c546 100644 --- a/src/Android/MainApplication.cs +++ b/src/Android/MainApplication.cs @@ -16,6 +16,8 @@ using Bit.Droid.Utilities; using Plugin.CurrentActivity; using Plugin.Fingerprint; using Xamarin.Android.Net; +using System.Net.Http; +using System.Net; #if !FDROID using Android.Gms.Security; #endif @@ -78,7 +80,8 @@ namespace Bit.Droid FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration { FadeAnimationEnabled = false, - FadeAnimationForCachedImages = false + FadeAnimationForCachedImages = false, + HttpClient = new HttpClient(new AndroidClientHandler() { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }) }); ZXing.Net.Mobile.Forms.Android.Platform.Init(); });