public void finish() {
        if (dialogXFloatingWindowActivity != null) {
            dialogXFloatingWindowActivity.clear();
        }
        dialogXFloatingWindowActivity = null;
        super.finish();
        int version = Integer.valueOf(Build.VERSION.SDK_INT);
        if (version > 5) {
            overridePendingTransition(0, 0);
        }
    }
@author: Kongzue
@github: https://github.com/kongzue/
@homepage: http://kongzue.com/
@mail: myzcxhh@live.cn
@createTime: 2021/12/20 14:58
DialogX/src/main/java/com/kongzue/dialogx/util/DialogXFloatingWindowActivity.java