You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And bottomSheetStyle is set in themes.xml, let's assume it sets a shapeAppearanceOverlay.
Unless app:shapeAppearance="@style/ShapeAppearance.Todoist.MaterialAlertDialog" is set in the tag above, the shapeAppearanceOverlay in the bottomSheetStyle and backgroundTint attribute are ignored.
Expected behavior: backgroundTint and bottomSheetStyle should not be ignored. I guess even if it doesn't make sense to use bottomSheetStyle to build a ShapeAppearanceModel without a shapeAppearance specified, the backgroundTint shouldn't be ignored.
Another thing is that even if backgroundTint isn't specified, I believe if colorBackground is defined in the theme, it is also not currently respected unless a shapeAppearance is specified.
Material Library version: 1.3.0
Device: Google Pixel
To help us triage faster, please check to make sure you are using the latest version of the library.
I would gladly take that if-block outside of the if (this.shapeThemingEnabled) { block and submit a PR if anyone agrees that, at the very least, the backgroundTint/colorBackground should be applied regardless of whether a shapeAppearance is specified or not.
The text was updated successfully, but these errors were encountered:
Description:
Consider this XML
And
bottomSheetStyle
is set inthemes.xml
, let's assume it sets ashapeAppearanceOverlay
.Unless
app:shapeAppearance="@style/ShapeAppearance.Todoist.MaterialAlertDialog"
is set in the tag above, theshapeAppearanceOverlay
in thebottomSheetStyle
andbackgroundTint
attribute are ignored.Expected behavior:
backgroundTint
andbottomSheetStyle
should not be ignored. I guess even if it doesn't make sense to usebottomSheetStyle
to build a ShapeAppearanceModel without a shapeAppearance specified, thebackgroundTint
shouldn't be ignored.Another thing is that even if
backgroundTint
isn't specified, I believe ifcolorBackground
is defined in the theme, it is also not currently respected unless a shapeAppearance is specified.Material Library version: 1.3.0
Device: Google Pixel
I'm not using 1.4.0-alpha but I see that this code is the same as 1.3.0:
https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/bottomsheet/BottomSheetBehavior.java#L1325
I would gladly take that if-block outside of the
if (this.shapeThemingEnabled) {
block and submit a PR if anyone agrees that, at the very least, the backgroundTint/colorBackground should be applied regardless of whether a shapeAppearance is specified or not.The text was updated successfully, but these errors were encountered: