Skip to content

Commit

Permalink
アカウントセンターはWebViewを強制 (#202)
Browse files Browse the repository at this point in the history
Co-authored-by: Syuugo <[email protected]>
  • Loading branch information
areteruhiro and s1204IT authored Nov 14, 2024
1 parent 7b4b94b commit b6cbf35
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,20 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
WebView webView = findWebView(rootView);

if (webView != null) {
String currentUrl = webView.getUrl();

if (currentUrl != null &&
(currentUrl.startsWith("https://account-center.lylink.yahoo.co.jp") ||
currentUrl.startsWith("https://access.line.me") ||
currentUrl.startsWith("https://id.lylink.yahoo.co.jp/federation/ly/normal/callback/first"))) {

return;
}

webView.setVisibility(View.GONE);
webView.stopLoading();

Uri uri = Uri.parse(webView.getUrl());
Uri uri = Uri.parse(currentUrl);

if (limeOptions.openInBrowser.checked) {
Intent intent = new Intent(Intent.ACTION_VIEW);
Expand All @@ -48,7 +58,6 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
}

activity.finish();

}
}
}
Expand Down

0 comments on commit b6cbf35

Please sign in to comment.