The dismissed-latch added in #70 pushed NowPlayingScreen.onPostScroll to three early returns, tripping detekt's ReturnCount ≤ 2 ceiling on main.
Fold the NestedScrollSource.UserInput guard into the existing if/else if/else expression so the function returns at most twice — once for the latch bail, once for the normal path. Runtime behavior is identical.
Test plan
CI: detekt passes on dev
Drag-dismiss the NowPlaying screen — still latches on first threshold crossing, still consumes remaining drag
(The v2026.06.02 release APK already shipped with the correct latch behavior — the only thing this PR fixes is detekt style.)
## Summary
- The dismissed-latch added in #70 pushed `NowPlayingScreen.onPostScroll` to three early returns, tripping detekt's `ReturnCount ≤ 2` ceiling on main.
- Fold the `NestedScrollSource.UserInput` guard into the existing if/else if/else expression so the function returns at most twice — once for the latch bail, once for the normal path. Runtime behavior is identical.
## Test plan
- [ ] CI: detekt passes on dev
- [ ] Drag-dismiss the NowPlaying screen — still latches on first threshold crossing, still consumes remaining drag
(The `v2026.06.02` release APK already shipped with the correct latch behavior — the only thing this PR fixes is detekt style.)
The dismissed-latch added a third early return to onPostScroll —
detekt's ReturnCount ceiling is 2 per the project rule. Fold the
NestedScrollSource.UserInput guard into the existing if/else if/else
chain that branches on the drag direction. Behavior is identical;
the source check just becomes the first arm of the expression
rather than an early bail.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
NowPlayingScreen.onPostScrollto three early returns, tripping detekt'sReturnCount ≤ 2ceiling on main.NestedScrollSource.UserInputguard into the existing if/else if/else expression so the function returns at most twice — once for the latch bail, once for the normal path. Runtime behavior is identical.Test plan
(The
v2026.06.02release APK already shipped with the correct latch behavior — the only thing this PR fixes is detekt style.)