From f1fe1b573f71cd8d2d5285ac811884da484d982a Mon Sep 17 00:00:00 2001 From: Taco Date: Sun, 10 Mar 2024 01:55:35 -0500 Subject: Fix OkHttp deprecations (#6979) --- .../src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/glide') diff --git a/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java b/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java index 5c3605594..3814c0700 100644 --- a/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java +++ b/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java @@ -104,7 +104,7 @@ class ApOkHttpUrlLoader implements ModelLoader { .protocol(Protocol.HTTP_2) .code(420) .message("Policy Not Fulfilled") - .body(ResponseBody.create(null, new byte[0])) + .body(ResponseBody.create(new byte[0], null)) .request(chain.request()) .build(); } -- cgit v1.2.3