Refine Sheet hit-test ordering and expand Sheet screenshot test#4505
Open
shai-almog wants to merge 2 commits intomasterfrom
Open
Refine Sheet hit-test ordering and expand Sheet screenshot test#4505shai-almog wants to merge 2 commits intomasterfrom
shai-almog wants to merge 2 commits intomasterfrom
Conversation
Collaborator
Author
Android screenshot updatesCompared 31 screenshots: 30 matched, 1 missing reference.
Native Android coverage
|
Collaborator
Author
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
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.


Motivation
Sheetvisibility when a nativePeerComponentis involved to minimize overhead and avoid unnecessary EDT interactions.Sheetbounds so native event paths can safely decide whether to deliver touches to peer components.Description
Sheetwith a privateSheetBoundstype, a volatilesheetBoundsarray, and helpersupdateSheetBounds,removeSheetBounds,startTrackingBounds,stopTrackingBounds, andupdateTrackedBoundsto maintain a lightweight cache usable off the EDT, and exposed the querySheet.isSheetVisibleAt(int x, int y).startTrackingBounds()duringshow()andstopTrackingBounds()when a sheet is hidden, and by overridingsetX,setY,setWidth, andsetHeightto refresh tracked bounds when the sheet moves or resizes.PeerComponentand only then consultSheet.isSheetVisibleAt(...): updated touch logic inPorts/Android/src/com/codename1/impl/android/CodenameOneView.javaandPorts/iOSPort/src/com/codename1/impl/ios/IOSImplementation.javato defer sheet checks until a peer is present.SheetScreenshotTest(added underscripts/hellocodenameone) to create a parent and nested child sheet, add an extra command to the sheet title bar, and register the test inCn1ssDeviceRunnerso the device runner exercises nested sheet behavior.Testing
Codex Task