Small fixes
This commit is contained in:
parent
9cc0d0b77a
commit
d4c9e7bc9c
1 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue