Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 15, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

hiichoudhary and others added 6 commits January 14, 2026 06:07
According to the Kotlin Coroutines documentation, there should be only one `TestCoroutineScheduler` per test environment.

This change exposes the scheduler used by the library, whether it was provided by the user or created by default. Access to this specific instance is necessary to ensure synchronization and enables the use of APIs like `runCurrent()`.

Test: NA
Bug: 254115946
Relnote: "Exposed the TestCoroutineScheduler to enable usage of
`runCurrent()` and ensure access to the shared scheduler instance."

Change-Id: Iea662686f25332bd583a4512827bb5eab0fc5ad9
This CL introduces the following changes -
1. It decouples the tight dependency on AnnotationsView so that it can
   unit tested without instrumentation testing requirements.
2. Renames the handleTouch method to findAnnotations which is more
   idiomatic.
3. Renames the touch handler to AnnotationsLocator. Removes the
   setListener method and returns the list of annotations instead.
4. The locator returns a list of annotations so that its usage could be
   broader at the same point. eg. multiple annotation selection
5. Cleaning up AnnotationsView so the locator reinitialises when the
   pageInfoProvider initialises as well.

Bug: 475418945
Test: ./gradlew :pdf:pdf-viewer:test
Change-Id: I2ff98696f027e5fbc8977a6dec96346f6c707da2
Test: None
Bug: 460508283
Change-Id: I13a633737b1ea1681034e18b3931e8570c08e7c6
@pull pull bot locked and limited conversation to collaborators Jan 15, 2026
@pull pull bot added the ⤵️ pull label Jan 15, 2026
@pull pull bot merged commit 5fc4e02 into MaxMood96:androidx-main Jan 15, 2026
2 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants