Skip to content

Fix Snackbar layout inflation crash by aligning app bootstrap theme with AppCompat#117

Merged
Goooler merged 2 commits intotrunkfrom
copilot/fix-design-layout-snackbar-issue
Apr 23, 2026
Merged

Fix Snackbar layout inflation crash by aligning app bootstrap theme with AppCompat#117
Goooler merged 2 commits intotrunkfrom
copilot/fix-design-layout-snackbar-issue

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 23, 2026

Snackbar.make(...) was crashing at runtime while inflating design_layout_snackbar_include because the app bootstrap theme did not provide the AppCompat attribute set expected by Material/AppCompat snackbar internals. This surfaced as Failed to resolve attribute ... ThemeOverlay.AppCompat.Dark during TextView inflation.

  • Theme baseline correction

    • Updated the app bootstrap theme parent to AppCompat DayNight so snackbar include/text appearance attributes resolve consistently.
  • Crash path addressed

    • Prevents the UnsupportedOperationException raised from TypedArray.getColorStateList(...) in snackbar text appearance resolution under ThemeOverlay.AppCompat.Dark.
<!-- app/src/main/res/values/themes.xml -->
<resources>
-    <style name="BootstrapTheme" parent="android:Theme.Material.Light.NoActionBar" />
+    <style name="BootstrapTheme" parent="Theme.AppCompat.DayNight.NoActionBar" />
</resources>

Copilot AI changed the title [WIP] Fix attribute resolution for design_layout_snackbar_include Fix Snackbar layout inflation crash by aligning app bootstrap theme with AppCompat Apr 23, 2026
Copilot AI requested a review from Goooler April 23, 2026 05:18
@Goooler Goooler marked this pull request as ready for review April 23, 2026 05:29
@Goooler Goooler merged commit c1a5bcf into trunk Apr 23, 2026
@Goooler Goooler deleted the copilot/fix-design-layout-snackbar-issue branch April 23, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to resolve attribute for design_layout_snackbar_include

2 participants