fix plugin info

pull/28/head
fengyuecanzhu 2 years ago
parent 15899b6f75
commit c1dabd3b8d
No known key found for this signature in database
GPG Key ID: 04B78AD06A9D6E6C
  1. 5
      app/src/main/java/xyz/fycz/myreader/util/utils/PluginUtils.kt
  2. 4
      dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt

@ -130,10 +130,7 @@ object PluginUtils {
fun getPluginLoadInfo(): String { fun getPluginLoadInfo(): String {
return try { return try {
(MapleUtils.getStaticObjectField( MapleUtils.callMethod(appLoader, "getPluginLoadInfo") as String
appLoader?.javaClass,
"pluginLoadInfo"
) as StringBuilder).toString()
} catch (e: Exception) { } catch (e: Exception) {
"" ""
} }

@ -130,4 +130,8 @@ class AppLoadImpl : IAppLoader {
MapleUtils.log(e) MapleUtils.log(e)
} }
} }
fun getPluginLoadInfo(): String {
return allFixInfoSb.toString()
}
} }

Loading…
Cancel
Save