mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05:16 +08:00
feat: ignore user-terminated crash
This commit is contained in:
@@ -413,6 +413,8 @@ object FrameworkHooker : YukiBaseHooker() {
|
|||||||
name = "handleAppCrashLSPB"
|
name = "handleAppCrashLSPB"
|
||||||
paramCount = 6
|
paramCount = 6
|
||||||
}.hook().after {
|
}.hook().after {
|
||||||
|
/** 如果为用户终止则不展示异常 */
|
||||||
|
if (args(index = 1).string() == "user-terminated") return@after
|
||||||
/** 当前实例 */
|
/** 当前实例 */
|
||||||
val context = appContext ?: field { name = "mContext" }.get(instance).cast<Context>() ?: return@after
|
val context = appContext ?: field { name = "mContext" }.get(instance).cast<Context>() ?: return@after
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user