mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Merge pull request #967 from vector-im/feature/bma/detektConfig
Update detekt config.
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
+3
-3
@@ -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: ")
|
||||
|
||||
Reference in New Issue
Block a user