Skip to content

Commit

Permalink
Fix small issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Mar 28, 2020
1 parent fe62fc7 commit 19827be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 19827be

Please sign in to comment.