fix #80, prevent crashes at rotating with some dialog open

This commit is contained in:
tibbi
2017-04-18 23:22:41 +02:00
parent d6b4fbd9e8
commit a6dc7aebef
2 changed files with 14 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
val itemIndex = getNoteIndexWithId(wantedNoteId)
mAdapter = NotesPagerAdapter(supportFragmentManager, mNotes)
mAdapter = NotesPagerAdapter(supportFragmentManager, mNotes, applicationContext)
view_pager.apply {
adapter = mAdapter
currentItem = itemIndex