public void showNext() {
        if (dialogs == null || dialogs.isEmpty()) {
            return;
        }
        while (!dialogs.isEmpty() && dialogs.get(0) == null) {
            dialogs.remove(0);
        }
        if (!dialogs.isEmpty() && dialogs.get(0) != null) {
            dialogs.get(0).show();
        }
    }
@author: Kongzue
@github: https://github.com/kongzue/
@homepage: http://kongzue.com/
@mail: myzcxhh@live.cn
@createTime: 2022/8/8 15:08
DialogX/src/main/java/com/kongzue/dialogx/util/DialogListBuilder.java