Skip to content

Commit

Permalink
Separate the catch blocks for crash logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed May 24, 2024
1 parent e9ea00d commit e9242c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/hiddenramblings/tagmo/TagMo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ class TagMo : Application() {
error.printStackTrace(PrintWriter(this))
}
try {
Debug.saveException(this, exception.toString())
Debug.sendException(this, exception.toString())
} catch (ignored: Exception) { }
try {
Debug.saveException(this, exception.toString())
} catch (ignored: Exception) { }
android.os.Process.killProcess(android.os.Process.myPid())
exitProcess(-1)
}
Expand Down

0 comments on commit e9242c0

Please sign in to comment.