Small fixes

This commit is contained in:
Nazar-Kutz 2020-04-16 14:59:52 +03:00
parent 9cc0d0b77a
commit d4c9e7bc9c

View file

@ -74,14 +74,19 @@ public class RearrangePoiFiltersFragment extends DialogFragment implements Selec
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState != null) {
dismiss();
}
boolean nightMode = isNightMode(requireMyApplication(), usedOnMap);
int themeId = nightMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
setStyle(STYLE_NO_FRAME, themeId);
}
@Override
public void onPause() {
super.onPause();
if (requireActivity().isChangingConfigurations()) {
dismiss();
}
}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);