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.setContentWidth(AndroidUtils.dpToPx(app, 200f));
popup.setModal(true); popup.setModal(true);
popup.setDropDownGravity(Gravity.END | Gravity.TOP); popup.setDropDownGravity(Gravity.END | Gravity.TOP);
boolean orientationPortrait = AndroidUiHelper.isOrientationPortrait(getActivity()); if (AndroidUiHelper.isOrientationPortrait(getActivity())) {
if (orientationPortrait) {
popup.setVerticalOffset(AndroidUtils.dpToPx(app, 48f)); popup.setVerticalOffset(AndroidUtils.dpToPx(app, 48f));
} else { } else {
popup.setVerticalOffset(AndroidUtils.dpToPx(app, -48f)); popup.setVerticalOffset(AndroidUtils.dpToPx(app, -48f));