mirror of
https://github.com/areteruhiro/LIME-beta-hiro.git
synced 2025-02-05 21:11:39 +09:00
space
This commit is contained in:
parent
540b5c3d21
commit
17c88b079b
@ -26,7 +26,6 @@ public class RedirectWebView implements IHook {
|
||||
@Override
|
||||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
|
||||
Activity activity = (Activity) param.thisObject;
|
||||
|
||||
View rootView = activity.getWindow().getDecorView().getRootView();
|
||||
WebView webView = findWebView(rootView);
|
||||
|
||||
@ -55,6 +54,7 @@ public class RedirectWebView implements IHook {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
private WebView findWebView(View view) {
|
||||
if (view instanceof WebView) {
|
||||
return (WebView) view;
|
||||
|
Loading…
Reference in New Issue
Block a user