Skip to content

Fix compile errors with Material 1.13.0: replace removed colorPrimary/colorControlNormal attrs#28

Merged
Goooler merged 2 commits intomainfrom
copilot/sub-pr-13
Feb 20, 2026
Merged

Fix compile errors with Material 1.13.0: replace removed colorPrimary/colorControlNormal attrs#28
Goooler merged 2 commits intomainfrom
copilot/sub-pr-13

Conversation

Copy link

Copilot AI commented Feb 20, 2026

Material 1.13.0 removed colorPrimary and colorControlNormal from com.google.android.material.R.attr, causing compileAlphaReleaseKotlin to fail with unresolved reference errors.

Changes

  • Replace com.google.android.material.R.attr.colorPrimaryandroid.R.attr.colorPrimary in MainDesign.kt, PopupListAdapter.kt, ProxyViewConfig.kt
  • Replace com.google.android.material.R.attr.colorControlNormalandroid.R.attr.colorControlNormal in PopupListAdapter.kt
// Before
context.resolveThemedColor(com.google.android.material.R.attr.colorPrimary)
context.resolveThemedColor(com.google.android.material.R.attr.colorControlNormal)

// After
context.resolveThemedColor(android.R.attr.colorPrimary)
context.resolveThemedColor(android.R.attr.colorControlNormal)

Both platform attributes are available since API 21; minSdk is 23.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com>
Copilot AI changed the title [WIP] Update dependency com.google.android.material:material to v1.13.0 Fix compile errors with Material 1.13.0: replace removed colorPrimary/colorControlNormal attrs Feb 20, 2026
Copilot AI requested a review from Goooler February 20, 2026 16:35
Base automatically changed from renovate/material to main February 20, 2026 16:41
@Goooler Goooler merged commit 23c70bc into main Feb 20, 2026
1 check passed
@Goooler Goooler deleted the copilot/sub-pr-13 branch February 20, 2026 16:41
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.

2 participants