deleted unnecessary boolean variable
This commit is contained in:
parent
f29c5944eb
commit
58db8de4c7
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue