[android] Fixed commit fragment transaction

This commit is contained in:
Dmitry Donskoy 2018-10-04 17:16:21 +03:00 committed by Daria Volvenkova
parent 634dc20af0
commit a902083d8f

View file

@ -104,7 +104,7 @@ public class ToggleMapLayerDialog extends DialogFragment
Fragment oldInstance = fm.findFragmentByTag(tag);
if (oldInstance != null)
fm.beginTransaction().remove(oldInstance).commit();
fm.beginTransaction().remove(oldInstance).commitAllowingStateLoss();
frag.show(fm, tag);
}