Skip to content

fix(lint): resolve github-advanced-security warnings for text size, layout hierarchy, and KTX color parsing - #55

Open
dkhawk wants to merge 1 commit into
feature/new_features_with_0.2.2_sdkfrom
feat/fix-advanced-security-lint-findings
Open

fix(lint): resolve github-advanced-security warnings for text size, layout hierarchy, and KTX color parsing#55
dkhawk wants to merge 1 commit into
feature/new_features_with_0.2.2_sdkfrom
feat/fix-advanced-security-lint-findings

Conversation

@dkhawk

@dkhawk dkhawk commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Summary of Changes

This PR resolves Android Lint warnings flagged by GitHub Advanced Security / SARIF code scanning on PR #50:

  1. SmallSp (Text size too small):

    • Updated control_panel_field_of_view.xml preset button text sizes from 10sp to 11sp (btn_fov_telephoto, btn_fov_standard, btn_fov_wide, btn_fov_ultrawide).
  2. UselessParent (Unnecessary parent layout):

    • Removed the redundant LinearLayout wrapper around RadioGroup (rg_map_mode) in control_panel_roadmap_mode.xml.
    • Updated RoadmapModeActivity (Java and Kotlin) to bind the collapsible content reference directly to rg_map_mode.
  3. UseKtx (String.toColorInt extension):

    • In DataVisualizationActivity.kt and PathFollowingActivity.kt, replaced Color.parseColor("#...") with the Android KTX extension "#...".toColorInt().

Verification

  • Ran ./gradlew :Maps3DSamples:ApiDemos:common:lintDebug :Maps3DSamples:ApiDemos:java-app:lintDebug :Maps3DSamples:ApiDemos:kotlin-app:lintDebug --no-daemon – verified zero remaining SmallSp, UselessParent, or UseKtx issues.
  • Ran ./gradlew assembleDebug --no-daemon – verified clean build and packaging across all modules.

@dkhawk
dkhawk requested review from LoyalAbbas and kikoso August 25, 2026 21:01
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