Skip to content

[pull] androidx-main from androidx:androidx-main#1311

Merged
pull[bot] merged 4 commits into
MaxMood96:androidx-mainfrom
androidx:androidx-main
Jul 27, 2026
Merged

[pull] androidx-main from androidx:androidx-main#1311
pull[bot] merged 4 commits into
MaxMood96:androidx-mainfrom
androidx:androidx-main

Conversation

@pull

@pull pull Bot commented Jul 27, 2026

Copy link
Copy Markdown

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 : )

marcellogalhardo and others added 4 commits July 21, 2026 19:20
- Converted `currentStateFlow` to use `by lazy(LazyThreadSafetyMode.NONE)`
  delegated property initialization.
- Removed the manual null-checking getter and the private backing
  field `_currentStateFlow`.
- Retained the warning comment inside the lazy initializer explaining
  that once initialized, a single observer is kept registered.

Test: ./gradlew :lifecycle:lifecycle-common:compileKotlinJvm
Relnote: N/A
Change-Id: If7a39f4bbb3efcb5599cb1f20abe00cb3809bede
- Updated `OnBackInvokedInput` to listen to `onHasEnabledBackHandlersChanged` instead of the generic `onHasEnabledHandlersChanged`. This ensures the system-level back callback is only registered when there are actually enabled handlers capable of processing back gestures.
- Added a unit test `testInvokerAddForwardOnlyHandler` to verify that adding a handler with `isBackEnabled = false` and `isForwardEnabled = true` does not cause `OnBackInvokedInput` to register its system callback.

Fixes: 123456789
Test: OnBackInvokedInputTest
Change-Id: I816e97b143246b1cc758a3ff661be793cf60db3a
@pull pull Bot locked and limited conversation to collaborators Jul 27, 2026
@pull pull Bot added the ⤵️ pull label Jul 27, 2026
@pull
pull Bot merged commit 39bdbe0 into MaxMood96:androidx-main Jul 27, 2026
2 of 4 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.

1 participant