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
Conversation
…ayout hierarchy, and KTX color parsing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This PR resolves Android Lint warnings flagged by GitHub Advanced Security / SARIF code scanning on PR #50:
SmallSp(Text size too small):control_panel_field_of_view.xmlpreset button text sizes from10spto11sp(btn_fov_telephoto,btn_fov_standard,btn_fov_wide,btn_fov_ultrawide).UselessParent(Unnecessary parent layout):LinearLayoutwrapper aroundRadioGroup(rg_map_mode) incontrol_panel_roadmap_mode.xml.RoadmapModeActivity(Java and Kotlin) to bind the collapsible content reference directly torg_map_mode.UseKtx(String.toColorIntextension):DataVisualizationActivity.ktandPathFollowingActivity.kt, replacedColor.parseColor("#...")with the Android KTX extension"#...".toColorInt().Verification
./gradlew :Maps3DSamples:ApiDemos:common:lintDebug :Maps3DSamples:ApiDemos:java-app:lintDebug :Maps3DSamples:ApiDemos:kotlin-app:lintDebug --no-daemon– verified zero remainingSmallSp,UselessParent, orUseKtxissues../gradlew assembleDebug --no-daemon– verified clean build and packaging across all modules.