Created
November 14, 2019 17:49
-
-
Save tresf/f9a6b0a060f96108e9f76a5238795975 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String[] methods = { "impl_updatePeer", "doUpdatePeer" }; | |
for(String method : methods) { | |
for(Method m : webView.getClass().getDeclaredMethods()) { | |
if(m.getName().equals(method)) { | |
if(!m.isAccessible()) { | |
m.setAccessible(true); | |
} | |
try { | |
m.invoke(webView); | |
} catch(IllegalAccessException | InvocationTargetException e) { | |
e.printStackTrace(); | |
} | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment