From 8c566ca221085ed7df6a97fb7dde7075197ba0c6 Mon Sep 17 00:00:00 2001 From: zhwanng <48609908+zhwanng@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:10:48 +0800 Subject: [PATCH] Update SeaWebViewClient.java --- .../seadroid2/view/webview/SeaWebViewClient.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/src/main/java/com/seafile/seadroid2/view/webview/SeaWebViewClient.java b/app/src/main/java/com/seafile/seadroid2/view/webview/SeaWebViewClient.java index af8a31288..b6da31b3f 100644 --- a/app/src/main/java/com/seafile/seadroid2/view/webview/SeaWebViewClient.java +++ b/app/src/main/java/com/seafile/seadroid2/view/webview/SeaWebViewClient.java @@ -102,19 +102,6 @@ private String buildUrl(String url) { } return Token2SessionConverts.buildUrl(url); - -// // Optimise the code here: -// // The expiry time of each cookie field is not consistent, -// // and it is possible to be redirected to the login page when opening the link -// String cookieStr = SupportCookieManager.getCookie(url); -// String u = url; -// if (TextUtils.isEmpty(cookieStr)) { -// u = Token2SessionConverts.buildUrl(url); -// Log.d(getClass().getSimpleName(), "link redirect to -> " + u); -// } else { -// Log.d(getClass().getSimpleName(), "link to -> " + u); -// } -// return u; } }