From 19827be527feeccc5527c6d2b9528f7b6fb945b4 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sat, 28 Mar 2020 22:05:26 +0800 Subject: [PATCH] Fix small issue --- app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt b/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt index 687a6ef481..ce3223fc2c 100644 --- a/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt +++ b/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt @@ -96,7 +96,7 @@ class BangumiSeasonHook(classLoader: ClassLoader?) : BaseHook(classLoader!!) { val newEpisodes = XposedHelpers.getObjectField(newResult, "episodes") var newModules:Any? = null XposedHelpers.findFieldIfExists(newResult.javaClass, "modules")?.let { - newModules = XposedHelpers.getObjectField(it.name, "modules") + newModules = XposedHelpers.getObjectField(newResult, "modules") } XposedHelpers.setObjectField(result, "rights", newRights) XposedHelpers.setObjectField(result, "episodes", newEpisodes)