mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
Revert "try new http client handler for icons"
This reverts commit c099f82752
.
This commit is contained in:
parent
c099f82752
commit
46a75a2944
2 changed files with 1 additions and 14 deletions
|
@ -74,7 +74,6 @@
|
||||||
<Reference Include="Mono.Android.Export" />
|
<Reference Include="Mono.Android.Export" />
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
@ -16,7 +16,6 @@ using Bit.Droid.Utilities;
|
||||||
using Plugin.CurrentActivity;
|
using Plugin.CurrentActivity;
|
||||||
using Plugin.Fingerprint;
|
using Plugin.Fingerprint;
|
||||||
using Xamarin.Android.Net;
|
using Xamarin.Android.Net;
|
||||||
using System.Net.Http;
|
|
||||||
#if !FDROID
|
#if !FDROID
|
||||||
using Android.Gms.Security;
|
using Android.Gms.Security;
|
||||||
#endif
|
#endif
|
||||||
|
@ -79,8 +78,7 @@ namespace Bit.Droid
|
||||||
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
|
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
|
||||||
{
|
{
|
||||||
FadeAnimationEnabled = false,
|
FadeAnimationEnabled = false,
|
||||||
FadeAnimationForCachedImages = false,
|
FadeAnimationForCachedImages = false
|
||||||
HttpClient = new HttpClient(new AndroidHttpImageClientHandler())
|
|
||||||
});
|
});
|
||||||
ZXing.Net.Mobile.Forms.Android.Platform.Init();
|
ZXing.Net.Mobile.Forms.Android.Platform.Init();
|
||||||
});
|
});
|
||||||
|
@ -146,15 +144,5 @@ namespace Bit.Droid
|
||||||
Constants.DisableFaviconKey, disableFavicon);
|
Constants.DisableFaviconKey, disableFavicon);
|
||||||
await ServiceContainer.Resolve<IEnvironmentService>("environmentService").SetUrlsFromStorageAsync();
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue