我显示了一个对话框,其中包含一个关闭按钮和一个打开新对话框的按钮。关闭按钮工作正常,除非我在当前对话框上打开了第二个对话框。我想我的对话框失去了焦点,无法关闭。
public void anotherOne(View v){
openDialog2(); //This opens another dialog on top of the current one
}
public void closeDialog(View v){
dialog.cancel(); //This works fine unless anotherOne() has be