Skip to content

Commit

Permalink
Update CrashUtils.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhizi715 committed Oct 14, 2021
1 parent 0d12fb9 commit 1a50ab6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object CrashUtils {

private val DEFAULT_UNCAUGHT_EXCEPTION_HANDLER: Thread.UncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler()

fun init(tag:String?, extraInfo:String?, printer: Printer, onCrashListener: OnCrashListener?) {
fun init(tag:String? = null, extraInfo:String? = null, printer: Printer, onCrashListener: OnCrashListener?) {

Thread.setDefaultUncaughtExceptionHandler(
getUncaughtExceptionHandler(tag, extraInfo, printer, onCrashListener)
Expand Down

0 comments on commit 1a50ab6

Please sign in to comment.