Skip to content

Commit

Permalink
fix crash on entering quest selection fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Oct 5, 2021
1 parent fab4167 commit fb55e0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ android {
applicationId = "de.westnordost.streetcomplete"
minSdk = 21
targetSdk = 30
versionCode = 3502
versionName = "35.1"
versionCode = 3503
versionName = "35.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ class QuestSelectionFragment : Fragment(R.layout.fragment_quest_selection), HasT

init {
Injector.applicationComponent.inject(this)
viewLifecycleOwner.lifecycle.addObserver(questSelectionAdapter)
}

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
setHasOptionsMenu(true)
viewLifecycleOwner.lifecycle.addObserver(questSelectionAdapter)
binding.questSelectionList.addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL))
binding.questSelectionList.layoutManager = LinearLayoutManager(context)
binding.questSelectionList.adapter = questSelectionAdapter
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/raw/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v35.2: |
<p>Fix crash on entering quest selection screen</p>
v35.1: |
<h3>Fixes</h3>
<ul>
Expand Down

0 comments on commit fb55e0d

Please sign in to comment.