diff --git a/vector/src/debug/java/im/vector/riotx/features/debug/DebugMenuActivity.kt b/vector/src/debug/java/im/vector/riotx/features/debug/DebugMenuActivity.kt index dc81d566..30b01aa9 100644 --- a/vector/src/debug/java/im/vector/riotx/features/debug/DebugMenuActivity.kt +++ b/vector/src/debug/java/im/vector/riotx/features/debug/DebugMenuActivity.kt @@ -133,5 +133,10 @@ class DebugMenuActivity : VectorBaseActivity() { startActivity(Intent(this, DebugMaterialThemeDarkActivity::class.java)) } + @OnClick(R.id.debug_test_crash) + fun testCrash() { + throw RuntimeException("Application crashed from user demand") + } + } diff --git a/vector/src/debug/res/layout/activity_debug_menu.xml b/vector/src/debug/res/layout/activity_debug_menu.xml index af5362e8..a0acfe99 100644 --- a/vector/src/debug/res/layout/activity_debug_menu.xml +++ b/vector/src/debug/res/layout/activity_debug_menu.xml @@ -47,6 +47,13 @@ android:layout_height="wrap_content" android:text="Test Material theme Dark" /> + +