mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-21 08:24:22 +01:00
Bug fix: crash on Android 6.0
This commit is contained in:
@@ -98,7 +98,12 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Widget.Connect" parent="@style/Widget.MaterialComponents.Button">
|
<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:minWidth">200dp</item>
|
||||||
<item name="android:minHeight">52dp</item>
|
<item name="android:minHeight">52dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user