Skip to content

Commit

Permalink
Remove error log
Browse files Browse the repository at this point in the history
  • Loading branch information
shatyuka committed Nov 10, 2021
1 parent abb5b23 commit 8a06e6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/shatyuka/killergram/MainHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) {
try {
Class<?> chatUIActivityClass = XposedHelpers.findClass("org.telegram.ui.ChatActivity", lpparam.classLoader);
XposedBridge.hookAllMethods(chatUIActivityClass, "addSponsoredMessages", XC_MethodReplacement.returnConstant(null));
} catch (Throwable throwable) {
XposedBridge.log("Hook failed for " + lpparam.packageName);
} catch (Throwable ignored) {
}
}
}

0 comments on commit 8a06e6c

Please sign in to comment.