Skip to content

Fix: Android Auto Fails to Display Album Covers

dab7607
Select commit
Loading
Failed to load commit list.
Open

feat: Android Auto Media Browsing Support #842

Fix: Android Auto Fails to Display Album Covers
dab7607
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (beta) failed Feb 18, 2026 in 40s

CodeScene PR Check

Quality Gate Failed

Gates Failed
Prevent hotspot decline (1 hotspot with Low Cohesion, Complex Conditional, Excess Number of Function Arguments)
Enforce critical code health rules (1 file with Low Cohesion)

Gates Passed
1 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Prevent hotspot decline Violations Code Health Impact
GramophonePlaybackService.kt 3 rules in this hotspot 4.83 → 4.10 Suppress
Enforce critical code health rules Violations Code Health Impact
GramophonePlaybackService.kt 1 critical rule 4.83 → 4.10 Suppress

Quality Gate Profile: The Bare Minimum
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

Details

🚩 Declining Code Health (highest to lowest):

  • Low Cohesion GramophonePlaybackService.kt 🔥
  • Complex Conditional GramophonePlaybackService.kt: GramophonePlaybackService.onAddMediaItems 🔥
  • Excess Number of Function Arguments GramophonePlaybackService.kt: GramophonePlaybackService.onGetChildren 🔥

✅ Improving Code Health:

  • Overall Code Complexity GramophonePlaybackService.kt 🔥

Annotations

Check warning on line 1 in app/src/main/java/org/akanework/gramophone/logic/GramophonePlaybackService.kt

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (beta)

❌ New issue: Low Cohesion

This module has at least 3 different responsibilities amongst its 51 functions, threshold = 3. Cohesion is calculated using the LCOM4 metric. Low cohesion means that the module/class has multiple unrelated responsibilities, doing too many things and breaking the Single Responsibility Principle.

Check warning on line 1391 in app/src/main/java/org/akanework/gramophone/logic/GramophonePlaybackService.kt

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (beta)

❌ New issue: Complex Conditional

GramophonePlaybackService.onAddMediaItems has 1 complex conditionals with 2 branches, threshold = 2. A complex conditional is an expression inside a branch (e.g. if, for, while) which consists of multiple, logical operators such as AND/OR. The more logical operators in an expression, the more severe the code smell.

Check notice on line 1 in app/src/main/java/org/akanework/gramophone/logic/GramophonePlaybackService.kt

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (beta)

✅ Getting better: Overall Code Complexity

The mean cyclomatic complexity decreases from 4.59 to 4.27, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.

Check warning on line 684 in app/src/main/java/org/akanework/gramophone/logic/GramophonePlaybackService.kt

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (beta)

❌ New issue: Excess Number of Function Arguments

GramophonePlaybackService.onGetChildren has 6 arguments, max arguments = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.