kunfei %!s(int64=3) %!d(string=hai) anos
pai
achega
ee2432f8cd
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      app/src/main/java/io/legado/app/utils/IntentType.kt

+ 4 - 2
app/src/main/java/io/legado/app/utils/IntentType.kt

@@ -26,8 +26,10 @@ object IntentType {
     }
 
     private val appIntentType: TypeInterface? by lazy {
-        Class.forName("io.legado.app.help.AppIntentType")
-            .kotlin.objectInstance as? TypeInterface
+        kotlin.runCatching {
+            Class.forName("io.legado.app.help.AppIntentType")
+                .kotlin.objectInstance as? TypeInterface
+        }.getOrNull()
     }
 
     interface TypeInterface {