Skip to content

Commit a831a85

Browse files
committed
Fix crash when rotating newley created list
Closes #80
1 parent 4e3f5f9 commit a831a85

File tree

1 file changed

+2
-0
lines changed
  • app/src/main/java/vocabletrainer/heinecke/aron/vocabletrainer/editor

1 file changed

+2
-0
lines changed

app/src/main/java/vocabletrainer/heinecke/aron/vocabletrainer/editor/EditorActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,13 +398,15 @@ class EditorActivity : AppCompatActivity(), EditorDialogDataProvider, ListEditor
398398
listEditorDialog!!.setOkAction {
399399
try {
400400
db.upsertVList(list!!)
401+
intent.putExtra(PARAM_TABLE, list)
401402
title = list!!.name
402403
updateColumnNames()
403404
} catch (e: SQLException) {
404405
Toast.makeText(
405406
this, "Unable to save list!",
406407
Toast.LENGTH_LONG
407408
).show()
409+
ACRA.errorReporter.handleException(e)
408410
finish() // TODO: is this the right place ?
409411
}
410412
null

0 commit comments

Comments
 (0)