Merge pull request #967 from vector-im/feature/bma/detektConfig
Update detekt config.
This commit is contained in:
commit
d06f86f79d
90 changed files with 296 additions and 198 deletions
|
|
@ -178,11 +178,11 @@ fun BugReportView(
|
|||
|
||||
@Preview
|
||||
@Composable
|
||||
fun BugReportViewLightPreview(@PreviewParameter(BugReportStateProvider::class) state: BugReportState) = ElementPreviewLight { ContentToPreview(state) }
|
||||
internal fun BugReportViewLightPreview(@PreviewParameter(BugReportStateProvider::class) state: BugReportState) = ElementPreviewLight { ContentToPreview(state) }
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
fun BugReportViewDarkPreview(@PreviewParameter(BugReportStateProvider::class) state: BugReportState) = ElementPreviewDark { ContentToPreview(state) }
|
||||
internal fun BugReportViewDarkPreview(@PreviewParameter(BugReportStateProvider::class) state: BugReportState) = ElementPreviewDark { ContentToPreview(state) }
|
||||
|
||||
@Composable
|
||||
private fun ContentToPreview(state: BugReportState) {
|
||||
|
|
|
|||
|
|
@ -62,9 +62,9 @@ class VectorUncaughtExceptionHandler(
|
|||
totalSize = info.totalMemory()
|
||||
usedSize = totalSize - freeSize
|
||||
}
|
||||
append("usedSize " + usedSize / 1048576L + " MB\n")
|
||||
append("freeSize " + freeSize / 1048576L + " MB\n")
|
||||
append("totalSize " + totalSize / 1048576L + " MB\n")
|
||||
append("usedSize " + usedSize / 1_048_576L + " MB\n")
|
||||
append("freeSize " + freeSize / 1_048_576L + " MB\n")
|
||||
append("totalSize " + totalSize / 1_048_576L + " MB\n")
|
||||
append("Thread: ")
|
||||
append(thread.name)
|
||||
append(", Exception: ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue