From 023e6496a4d5ef6adf347b9508a8034f705cb773 Mon Sep 17 00:00:00 2001 From: Quildra Date: Tue, 5 Aug 2025 08:37:06 +0100 Subject: [PATCH] fix: resolve NullPointerException crash when tapping collapsed history entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../com/quillstudios/pokegoalshelper/ui/HistoryAdapter.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/quillstudios/pokegoalshelper/ui/HistoryAdapter.kt b/app/src/main/java/com/quillstudios/pokegoalshelper/ui/HistoryAdapter.kt index 589dee7..dfa0a05 100644 --- a/app/src/main/java/com/quillstudios/pokegoalshelper/ui/HistoryAdapter.kt +++ b/app/src/main/java/com/quillstudios/pokegoalshelper/ui/HistoryAdapter.kt @@ -240,9 +240,7 @@ class HistoryAdapter( // Configure scrolling behavior optimized for nested scrolling isFillViewport = false isNestedScrollingEnabled = true - isVerticalScrollBarEnabled = true // Show scrollbar for visual confirmation - scrollBarStyle = View.SCROLLBARS_INSIDE_OVERLAY - isScrollbarFadingEnabled = false // Keep scrollbar visible + // Remove scrollbar config that causes crash - scrollbars not essential for functionality tag = "expanded_content" val contentContainer = LinearLayout(context).apply {