From fba4e04fdb91c1d9fb726ab29bc7b2ac5b6ddae9 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Thu, 27 Nov 2014 21:20:34 -0500 Subject: [PATCH] Fix the 1st Timothy scrolling issue --- .../org/bspeice/minimalbible/activity/viewer/BibleMenu.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/bspeice/minimalbible/activity/viewer/BibleMenu.kt b/app/src/main/kotlin/org/bspeice/minimalbible/activity/viewer/BibleMenu.kt index d8f3ff7..9bc6a95 100644 --- a/app/src/main/kotlin/org/bspeice/minimalbible/activity/viewer/BibleMenu.kt +++ b/app/src/main/kotlin/org/bspeice/minimalbible/activity/viewer/BibleMenu.kt @@ -37,7 +37,9 @@ class BibleMenu(val b: Book) : BaseExpandableListAdapter() { groupPosition: Int, childPosition: Int, id: Long): Boolean { val map = menuMappings[groupPosition] - listener onNext BookScrollEvent(map.first, map.second) + // childPosition is index-based + // TODO: Figure out why trying chapter 0 triggers a NotImplementedException... + listener onNext BookScrollEvent(map.first, childPosition + 1) return true; // Event was handled }