Skip to content

Fix lint warnings in SysUI snippets - #1012

Open
kkuan2011 wants to merge 1 commit into
mainfrom
katherinekuan/lint-system-ui
Open

Fix lint warnings in SysUI snippets#1012
kkuan2011 wants to merge 1 commit into
mainfrom
katherinekuan/lint-system-ui

Conversation

@kkuan2011

Copy link
Copy Markdown
Contributor

Summary of Changes

This PR resolves Android Lint warnings and cleans up obsolete platform version scaffolding in SystemUI snippets for:

List of Modifications:

  • Glance: Fixed ComposableNaming warning by renaming @Composable fun example3() to @Composable fun Example3() (outside region tags).
  • Picture-in-Picture: Removed obsolete Android 8.0 (Build.VERSION_CODES.O / API 26) outer scaffolding checks and unused @RequiresApi(Build.VERSION_CODES.O) annotations from Composable wrappers. All 15 PiP region tag contents remain 100% textually identical.
  • Manifest: Added tools:ignore="DataExtractionRules" to <application> in compose/snippets/src/main/AndroidManifest.xml to resolve the Android 12 backup rule warning.

Verification:

  • ./gradlew :compose:snippets:lintDebug: Passed with 0 errors and 0 warnings across all 15 SystemUI files.
  • ./gradlew :compose:snippets:compileDebugKotlin --rerun-tasks: BUILD SUCCESSFUL with 0 compiler warnings.
  • ./gradlew :compose:snippets:assembleDebug: BUILD SUCCESSFUL.
  • ./gradlew :compose:snippets:spotlessApply: Formatting verified clean.

- GlanceSnippets: Fix ComposableNaming warning on Example3
- PictureInPictureSnippets: Clean up obsolete Android 8.0 (API 26) outer scaffolding checks
- AndroidManifest: Add tools:ignore="DataExtractionRules" to application tag
@kkuan2011
kkuan2011 requested a review from a team as a code owner August 7, 2026 19:33
@kkuan2011
kkuan2011 requested a review from raystatic August 7, 2026 19:33
@snippet-bot

snippet-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 5 region tags.
You are about to delete 5 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

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.

1 participant