Browse Source

fix: resolve NullPointerException crash when tapping collapsed history entries

Removed problematic scrollbar configuration from NestedScrollView that caused
ScrollBarDrawable.mutate() to throw NPE when accessing collapsed cards.
Scrollbar styling is not essential for core functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
feature/pgh-1-results-display-history
Quildra 5 months ago
parent
commit
023e6496a4
  1. 4
      app/src/main/java/com/quillstudios/pokegoalshelper/ui/HistoryAdapter.kt

4
app/src/main/java/com/quillstudios/pokegoalshelper/ui/HistoryAdapter.kt

@ -240,9 +240,7 @@ class HistoryAdapter(
// Configure scrolling behavior optimized for nested scrolling // Configure scrolling behavior optimized for nested scrolling
isFillViewport = false isFillViewport = false
isNestedScrollingEnabled = true isNestedScrollingEnabled = true
isVerticalScrollBarEnabled = true // Show scrollbar for visual confirmation // Remove scrollbar config that causes crash - scrollbars not essential for functionality
scrollBarStyle = View.SCROLLBARS_INSIDE_OVERLAY
isScrollbarFadingEnabled = false // Keep scrollbar visible
tag = "expanded_content" tag = "expanded_content"
val contentContainer = LinearLayout(context).apply { val contentContainer = LinearLayout(context).apply {

Loading…
Cancel
Save