Do not show disk insertion dialog if nothing chosen

This commit is contained in:
Aaron Culliney 2017-06-05 16:41:17 -07:00
parent e020817068
commit c731c2a310

View File

@ -228,7 +228,9 @@ public class Apple2Activity extends Activity implements Apple2DiskChooserActivit
}
if (sDisksChosen != null && mDisksMenu != null) {
mDisksMenu.showDiskInsertionAlertDialog("title", sDisksChosen);
if (sDisksChosen.pfd != null) {
mDisksMenu.showDiskInsertionAlertDialog("title", sDisksChosen);
}
sDisksChosen = null;
}
}