Bug fix: crash on Android 6.0

This commit is contained in:
Aleksander Nowakowski
2020-02-11 11:25:00 +01:00
parent ea4d39400d
commit 353cd48fa0

View File

@@ -98,7 +98,12 @@
</style>
<style name="Widget.Connect" parent="@style/Widget.MaterialComponents.Button">
<item name="android:theme">@style/ConnectTheme</item>
<!--
This needs to be theme, not android:theme, otherwise clicking the button causes
a crash on Android 6.0. The parent activity is replaced with ThemeContextWrapper and
causes onClick attribute in XML to fail find the target.
-->
<item name="theme">@style/ConnectTheme</item>
<item name="android:minWidth">200dp</item>
<item name="android:minHeight">52dp</item>
</style>