Skip to content

Lint cleanup: fix Overdraw issues across 9 modules#7855

Open
malmstein wants to merge 1 commit intodevelopfrom
feature/lint-cleanup-phase2-overdraw
Open

Lint cleanup: fix Overdraw issues across 9 modules#7855
malmstein wants to merge 1 commit intodevelopfrom
feature/lint-cleanup-phase2-overdraw

Conversation

@malmstein
Copy link
Contributor

@malmstein malmstein commented Mar 3, 2026

Task/Issue URL: https://app.asana.com/1/137249556945/project/1157893581871903/task/1213509412140215

Description

Fix 46 Overdraw lint issues across 9 modules (excluding :app).

All issues are false positives — lint incorrectly infers Theme.Holo instead of the actual DuckDuckGo theme, causing it to report root element backgrounds as overdraw when the theme already paints a background.

Changes:

  • Added tools:ignore="Overdraw" to 45 layout files with intentional backgrounds (activity/fragment backgrounds, list item ripples, popup menu backgrounds, custom drawables)
  • Removed unnecessary @color/transparent background from serp-logos easter egg layout (1 file)
  • Removed 46 Overdraw entries from lint baselines across 9 modules

Modules affected: browser-ui, autofill-impl, sync-impl, vpn-impl, voice-search-impl, serp-logos-impl, saved-sites-impl, duckchat-impl, network-protection-impl

Steps to test

  • ./gradlew spotlessCheck passes
  • Verify no visual changes (only lint metadata modified; @color/transparent removal is a no-op)

UI changes

No UI changes


Note

Low Risk
Changes are limited to Android XML lint suppression and baseline updates; runtime behavior should be unaffected aside from removing an explicit transparent background in one layout.

Overview
Suppresses a set of false-positive Android lint Overdraw warnings across multiple modules by adding tools:ignore="Overdraw" on root views that intentionally set backgrounds (activities/fragments, list rows, popups, and other UI containers).

Updates each module’s lint-baseline.xml to drop the corresponding Overdraw entries, and removes an unnecessary @color/transparent root background from activity_serp_easter_egg_logo.xml.

Written by Cursor Bugbot for commit db6cb92. This will update automatically on new commits. Configure here.

Add tools:ignore="Overdraw" to 45 layout files where root elements
have intentional backgrounds that lint falsely flags as overdraw
(lint infers wrong theme). Remove unnecessary transparent background
from serp-logos easter egg layout. Remove 46 Overdraw entries from
lint baselines.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@malmstein malmstein self-assigned this Mar 3, 2026
@malmstein
Copy link
Contributor Author

@mikescamell can you check the serp easter logos change?

@malmstein malmstein marked this pull request as draft March 3, 2026 21:38
@malmstein malmstein marked this pull request as ready for review March 5, 2026 13:44
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