优化
This commit is contained in:
1 parent
3d228c623a
commit
ee2432f8cd
1 file changed
+4
-2
@@ -26,8 +26,10 @@ object IntentType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val appIntentType: TypeInterface? by lazy {
|
private val appIntentType: TypeInterface? by lazy {
|
||||||
Class.forName("io.legado.app.help.AppIntentType")
|
kotlin.runCatching {
|
||||||
.kotlin.objectInstance as? TypeInterface
|
Class.forName("io.legado.app.help.AppIntentType")
|
||||||
|
.kotlin.objectInstance as? TypeInterface
|
||||||
|
}.getOrNull()
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TypeInterface {
|
interface TypeInterface {
|
||||||
|
|||||||
Reference in new issue
Block a user