0
我開始從對話的片段對話片段B A如何正確啓動dialogfragment的dialogframent?
CreateNewPlayListDialog newPlayListDialog = new CreateNewPlayListDialog();
Bundle b = new Bundle();
b.putInt("id", videoId);
newPlayListDialog.setArguments(b);
newPlayListDialog.show(getChildFragmentManager(), "dialog_new_playlist");
而這就是作品。但firstDialogFragment不會被取消。
如果我嘗試
CreateNewPlayListDialog newPlayListDialog = new CreateNewPlayListDialog();
Bundle b = new Bundle();
b.putInt("id", videoId);
newPlayListDialog.setArguments(b);
newPlayListDialog.show(getChildFragmentManager(), "dialog_new_playlist");
PlayListChooserDialog.this.dismiss();
然後dialogfragment B開始,並imidiatly取消,對話框中依然存在;
如何從對話框中啓動對話框B如對話框A將被取消?
交換沒有幫助第一個對話框的 – Yarh
重定向結果的活動,並從活動的確有助於開始新的對話 – Yarh