From 0abe7cc289bc92e86ee287ff1203c67e0fec298f Mon Sep 17 00:00:00 2001 From: YifePlayte <62252171+YifePlayte@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:32:04 +0800 Subject: [PATCH] Remove duplicated code --- .../universal/RemoveMIUIStrokeFromAdaptiveIcon.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/src/main/java/com/yifeplayte/wommo/hook/hooks/universal/RemoveMIUIStrokeFromAdaptiveIcon.kt b/app/src/main/java/com/yifeplayte/wommo/hook/hooks/universal/RemoveMIUIStrokeFromAdaptiveIcon.kt index 91f7122..52562c6 100644 --- a/app/src/main/java/com/yifeplayte/wommo/hook/hooks/universal/RemoveMIUIStrokeFromAdaptiveIcon.kt +++ b/app/src/main/java/com/yifeplayte/wommo/hook/hooks/universal/RemoveMIUIStrokeFromAdaptiveIcon.kt @@ -24,17 +24,5 @@ object RemoveMIUIStrokeFromAdaptiveIcon : BaseUniversalHook() { } } } - - loadClass("android.app.Activity").methodFinder().filterByName("onCreate").single() - .createHook { - before { - val clazzAdaptiveIconDrawableInjector = - loadClass("android.graphics.drawable.AdaptiveIconDrawableInjector") - clazzAdaptiveIconDrawableInjector.methodFinder().filterByName("drawMiuiStroke") - .toList().createHooks { - returnConstant(null) - } - } - } } } \ No newline at end of file