don't remove previous DialogFragment, may be still needed to receive download status

This commit is contained in:
benjamin stephan 2016-01-19 19:13:27 +01:00
parent 5737e436a0
commit c6219f1c46

View file

@ -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();