When trying to show Beagle view on activities which uses non-material theme, app crashes ( Drawer ) or dialog not shown ( Modal).
I think it is caused by using MaterialButton class in xml or code.
Is it possible to replace MaterialButton to Button?
crash log is like below:
java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).
at com.google.android.material.internal.ThemeEnforcement.checkTheme(ThemeEnforcement.java:247)
at com.google.android.material.internal.ThemeEnforcement.checkMaterialTheme(ThemeEnforcement.java:216)
at com.google.android.material.internal.ThemeEnforcement.checkCompatibleTheme(ThemeEnforcement.java:144)
at com.google.android.material.internal.ThemeEnforcement.obtainStyledAttributes(ThemeEnforcement.java:76)
at com.google.android.material.button.MaterialButton.<init>(MaterialButton.java:230)
I've assigned non-material theme in init function like below:
Beagle.initialize(application, Appearance( mypkg.R.style.My_non_material_theme))
When trying to show Beagle view on activities which uses non-material theme, app crashes ( Drawer ) or dialog not shown ( Modal).
I think it is caused by using
MaterialButtonclass in xml or code.Is it possible to replace
MaterialButtontoButton?crash log is like below:
I've assigned non-material theme in
initfunction like below: