deleted unnecessary boolean variable

This commit is contained in:
Chumva 2018-03-07 14:26:36 +02:00
parent f29c5944eb
commit 58db8de4c7

View file

@ -107,8 +107,7 @@ public class EditFavoriteGroupDialogFragment extends MenuBottomSheetDialogFragme
popup.setContentWidth(AndroidUtils.dpToPx(app, 200f));
popup.setModal(true);
popup.setDropDownGravity(Gravity.END | Gravity.TOP);
boolean orientationPortrait = AndroidUiHelper.isOrientationPortrait(getActivity());
if (orientationPortrait) {
if (AndroidUiHelper.isOrientationPortrait(getActivity())) {
popup.setVerticalOffset(AndroidUtils.dpToPx(app, 48f));
} else {
popup.setVerticalOffset(AndroidUtils.dpToPx(app, -48f));