mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Add a way to crash this app on demand. Useful to test Crash detection, and analytics report, etc.
This commit is contained in:
+6
@@ -56,6 +56,12 @@ fun DeveloperSettingsView(
|
|||||||
RageshakePreferencesView(
|
RageshakePreferencesView(
|
||||||
state = state.rageshakeState,
|
state = state.rageshakeState,
|
||||||
)
|
)
|
||||||
|
PreferenceCategory(title = "Crash", showDivider = false) {
|
||||||
|
PreferenceText(
|
||||||
|
title = "Crash the app 💥!,",
|
||||||
|
onClick = { error("This crash is a test.") }
|
||||||
|
)
|
||||||
|
}
|
||||||
val cache = state.cacheSize
|
val cache = state.cacheSize
|
||||||
PreferenceCategory(title = "Cache", showDivider = false) {
|
PreferenceCategory(title = "Cache", showDivider = false) {
|
||||||
PreferenceText(
|
PreferenceText(
|
||||||
|
|||||||
Reference in New Issue
Block a user