From 41e07b75718cea5096f025691cc7653d2e175f5d Mon Sep 17 00:00:00 2001 From: serso Date: Fri, 1 Apr 2016 20:54:13 +0200 Subject: [PATCH] Code is automatically reformatted --- .../widget/menu/CustomPopupMenuHelper.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/org/solovyev/android/widget/menu/CustomPopupMenuHelper.java b/app/src/main/java/org/solovyev/android/widget/menu/CustomPopupMenuHelper.java index a53ea4b0..3f9f3763 100644 --- a/app/src/main/java/org/solovyev/android/widget/menu/CustomPopupMenuHelper.java +++ b/app/src/main/java/org/solovyev/android/widget/menu/CustomPopupMenuHelper.java @@ -45,20 +45,21 @@ public class CustomPopupMenuHelper implements AdapterView.OnItemClickListener, V private final int mPopupMaxWidth; private final int mPopupStyleAttr; private final int mPopupStyleRes; - + boolean mForceShowIcon; private View mAnchorView; private ListPopupWindow mPopup; private ViewTreeObserver mTreeObserver; private Callback mPresenterCallback; - - boolean mForceShowIcon; - private ViewGroup mMeasureParent; - /** Whether the cached content width value is valid. */ + /** + * Whether the cached content width value is valid. + */ private boolean mHasContentWidth; - /** Cached content width from {@link #measureContentWidth}. */ + /** + * Cached content width from {@link #measureContentWidth}. + */ private int mContentWidth; private int mDropDownGravity = Gravity.NO_GRAVITY; @@ -104,14 +105,14 @@ public class CustomPopupMenuHelper implements AdapterView.OnItemClickListener, V mForceShowIcon = forceShow; } - public void setGravity(int gravity) { - mDropDownGravity = gravity; - } - public int getGravity() { return mDropDownGravity; } + public void setGravity(int gravity) { + mDropDownGravity = gravity; + } + public void show() { if (!tryShow()) { throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor");