mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05:16 +08:00
Fix no onCreate method in AppErrorDialog class problem in Android 10 in FrameworkHooker
This commit is contained in:
@@ -218,7 +218,14 @@ object FrameworkHooker : YukiBaseHooker() {
|
|||||||
param(BundleClass)
|
param(BundleClass)
|
||||||
}
|
}
|
||||||
afterHook { instance<Dialog>().cancel() }
|
afterHook { instance<Dialog>().cancel() }
|
||||||
}
|
}.ignoredNoSuchMemberFailure()
|
||||||
|
injectMember {
|
||||||
|
method {
|
||||||
|
name = "onStart"
|
||||||
|
emptyParam()
|
||||||
|
}
|
||||||
|
afterHook { instance<Dialog>().cancel() }
|
||||||
|
}.ignoredNoSuchMemberFailure()
|
||||||
}
|
}
|
||||||
/** 注入自定义错误对话框 */
|
/** 注入自定义错误对话框 */
|
||||||
AppErrorsClass.hook {
|
AppErrorsClass.hook {
|
||||||
|
Reference in New Issue
Block a user