File tree 1 file changed +8
-2
lines changed
app/src/main/java/vocabletrainer/heinecke/aron/vocabletrainer/activity
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -348,11 +348,14 @@ private void showEntryEditDialog(final VEntry entry) {
348
348
* @param entry VEntry to edit/create
349
349
* @param position edit position in list, if existing
350
350
*/
351
- private void showEntryEditDialog (final VEntry entry , final int position ) {
351
+ private synchronized void showEntryEditDialog (final VEntry entry , final int position ) {
352
352
if (entry .getId () == ID_RESERVED_SKIP ) {
353
353
showTableInfoDialog ();
354
354
return ;
355
355
}
356
+ if (editorDialog != null && editorDialog .isAdded ()) {
357
+ return ;
358
+ }
356
359
357
360
this .editPosition = position ;
358
361
this .editorEntry = entry ;
@@ -404,7 +407,10 @@ private void setListEditorActions() {
404
407
* Show list title editor dialog<br>
405
408
* Exit editor when newTbl is set and user cancels the dialog
406
409
*/
407
- private void showTableInfoDialog () {
410
+ private synchronized void showTableInfoDialog () {
411
+ if (listEditorDialog != null && listEditorDialog .isAdded ()) {
412
+ return ;
413
+ }
408
414
listEditorDialog = VListEditorDialog .newInstance (!list .isExisting ());
409
415
setListEditorActions ();
410
416
listEditorDialog .show (getSupportFragmentManager (), VListEditorDialog .TAG );
You can’t perform that action at this time.
0 commit comments