Remove unnecessary method call

This commit is contained in:
Alex Sytnyk 2018-04-05 20:33:09 +03:00
parent b7499c2174
commit 2c4aa1afba

View file

@ -38,7 +38,7 @@ public class WikivoyageBaseDialogFragment extends BaseOsmAndDialogFragment {
Dialog dialog = new Dialog(getContext(), themeId); Dialog dialog = new Dialog(getContext(), themeId);
Window window = dialog.getWindow(); Window window = dialog.getWindow();
if (window != null) { if (window != null) {
if (!getMyApplication().getSettings().DO_NOT_USE_ANIMATIONS.get()) { if (!getSettings().DO_NOT_USE_ANIMATIONS.get()) {
window.getAttributes().windowAnimations = R.style.Animations_Alpha; window.getAttributes().windowAnimations = R.style.Animations_Alpha;
} }
if (Build.VERSION.SDK_INT >= 21) { if (Build.VERSION.SDK_INT >= 21) {