Use variable instead of method call

This commit is contained in:
Alexander Sytnyk 2018-01-15 14:06:54 +02:00
parent bf0df9b29d
commit 6cf701cd1f

View file

@ -28,7 +28,7 @@ public abstract class BottomSheetDialogFragment extends DialogFragment {
BottomSheetDialog dialog = new BottomSheetDialog(getContext(), themeId);
dialog.setCanceledOnTouchOutside(true);
Window window = dialog.getWindow();
if (!getMyApplication().getSettings().DO_NOT_USE_ANIMATIONS.get() && window != null) {
if (!settings.DO_NOT_USE_ANIMATIONS.get() && window != null) {
window.getAttributes().windowAnimations = R.style.Animations_PopUpMenu_Bottom;
}