don't remove previous DialogFragment, may be still needed to receive download status
This commit is contained in:
parent
5737e436a0
commit
c6219f1c46
1 changed files with 0 additions and 9 deletions
|
@ -308,16 +308,7 @@ public class NewsDetailFragment extends Fragment {
|
|||
|
||||
Document htmldoc = Jsoup.parse(html);
|
||||
|
||||
// DialogFragment.show() will take care of adding the fragment
|
||||
// in a transaction. We also want to remove any currently showing
|
||||
// dialog, so make our own transaction and take care of that here.
|
||||
FragmentTransaction ft = getFragmentManager().beginTransaction();
|
||||
Fragment prev = getFragmentManager().findFragmentByTag("menu_fragment_dialog");
|
||||
if (prev != null) {
|
||||
ft.remove(prev);
|
||||
}
|
||||
ft.addToBackStack(null);
|
||||
|
||||
|
||||
if (type == WebView.HitTestResult.IMAGE_TYPE || type == WebView.HitTestResult.SRC_IMAGE_ANCHOR_TYPE) {
|
||||
String imageUrl = result.getExtra();
|
||||
|
|
Loading…
Reference in a new issue