Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e42b189f authored by Adam Powell's avatar Adam Powell
Browse files

Remove debug logging

Change-Id: If1a8ef5461b98239d8f55f842e1043b6b3d0f070
parent 04748bef
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import com.android.internal.view.menu.ActionMenuView.ActionMenuChildView;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.util.Log;
import android.util.SparseBooleanArray;
import android.view.MenuItem;
import android.view.SoundEffectConstants;
@@ -195,7 +194,6 @@ public class ActionMenuPresenter extends BaseMenuPresenter {
    public boolean showOverflowMenu() {
        if (mReserveOverflow && !isOverflowMenuShowing() && mMenuView != null &&
                mPostedOpenRunnable == null) {
            Log.d("ActionMenuPresenter", "showOverflowMenu");
            OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true);
            mPostedOpenRunnable = new OpenOverflowRunnable(popup);
            // Post this for later; we might still need a layout for the anchor to be right.
@@ -314,8 +312,6 @@ public class ActionMenuPresenter extends BaseMenuPresenter {
                v.measure(querySpec, querySpec);
                final int measuredWidth = v.getMeasuredWidth();
                widthLimit -= measuredWidth;
                Log.d(TAG, "flagActionItems required item " + i + " measured width " +
                        measuredWidth + " - " + widthLimit + " left");
                if (firstActionWidth == 0) {
                    firstActionWidth = measuredWidth;
                }
@@ -342,19 +338,15 @@ public class ActionMenuPresenter extends BaseMenuPresenter {
                    v.measure(querySpec, querySpec);
                    final int measuredWidth = v.getMeasuredWidth();
                    widthLimit -= measuredWidth;
                    Log.d(TAG, "flagActionItems requested item " + i + " measured width " +
                            measuredWidth + " - " + widthLimit + " left");
                    if (firstActionWidth == 0) {
                        firstActionWidth = measuredWidth;
                    }

                    if (mStrictWidthLimit) {
                        isAction = widthLimit >= 0;
                        Log.d(TAG, " --> strict width limit: isAction? " + isAction);
                    } else {
                        // Did this push the entire first item past the limit?
                        isAction = widthLimit + firstActionWidth > 0;
                        Log.d(TAG, " --> normal width limit: isAction? " + isAction);
                    }
                }