mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-07 06:23:55 +01:00
Add a debug button to test crash of the app
This commit is contained in:
parent
ddf4a81905
commit
c9fe1adb77
@ -133,5 +133,10 @@ class DebugMenuActivity : VectorBaseActivity() {
|
|||||||
startActivity(Intent(this, DebugMaterialThemeDarkActivity::class.java))
|
startActivity(Intent(this, DebugMaterialThemeDarkActivity::class.java))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@OnClick(R.id.debug_test_crash)
|
||||||
|
fun testCrash() {
|
||||||
|
throw RuntimeException("Application crashed from user demand")
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,13 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Test Material theme Dark" />
|
android:text="Test Material theme Dark" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/debug_test_crash"
|
||||||
|
style="@style/VectorButtonStyle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Crash the app" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user