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

Commit 7a304964 authored by András Kurucz's avatar András Kurucz Committed by Android (Google) Code Review
Browse files

Merge "Remove unused code from the NSSL" into main

parents 7fea5527 9680ba9d
Loading
Loading
Loading
Loading
+0 −45
Original line number Diff line number Diff line
@@ -89,7 +89,6 @@ import com.android.systemui.ExpandHelper;
import com.android.systemui.flags.FeatureFlags;
import com.android.systemui.flags.Flags;
import com.android.systemui.plugins.ActivityStarter;
import com.android.systemui.plugins.statusbar.NotificationSwipeActionHelper;
import com.android.systemui.res.R;
import com.android.systemui.scene.shared.flag.SceneContainerFlag;
import com.android.systemui.shade.TouchLogger;
@@ -620,8 +619,6 @@ public class NotificationStackScrollLayout

    @Nullable
    private OnClickListener mManageButtonClickListener;
    @Nullable
    private OnNotificationRemovedListener mOnNotificationRemovedListener;

    public NotificationStackScrollLayout(Context context, AttributeSet attrs) {
        super(context, attrs, 0, 0);
@@ -773,10 +770,6 @@ public class NotificationStackScrollLayout
                && !mIsRemoteInputActive;
    }

    public NotificationSwipeActionHelper getSwipeActionHelper() {
        return mSwipeHelper;
    }

    void updateBgColor() {
        for (int i = 0; i < getChildCount(); i++) {
            View child = getChildAt(i);
@@ -1980,17 +1973,6 @@ public class NotificationStackScrollLayout
        return insets;
    }

    private final Runnable mReclamp = new Runnable() {
        @Override
        public void run() {
            int range = getScrollRange();
            mScroller.startScroll(mScrollX, mOwnScrollY, 0, range - mOwnScrollY);
            mDontReportNextOverScroll = true;
            mDontClampNextScroll = true;
            animateScroll();
        }
    };

    public void setExpandingEnabled(boolean enable) {
        mExpandHelper.setEnabled(enable);
    }
@@ -2444,17 +2426,6 @@ public class NotificationStackScrollLayout
        return null;
    }

    private ExpandableNotificationRow getLastRowNotGone() {
        int childCount = getChildCount();
        for (int i = childCount - 1; i >= 0; i--) {
            View child = getChildAt(i);
            if (child instanceof ExpandableNotificationRow && child.getVisibility() != View.GONE) {
                return (ExpandableNotificationRow) child;
            }
        }
        return null;
    }

    /**
     * @return the number of children which have visibility unequal to GONE
     */
@@ -2704,10 +2675,6 @@ public class NotificationStackScrollLayout
        return mTopPaddingOverflow;
    }

    private int clampPadding(int desiredPadding) {
        return Math.max(desiredPadding, mIntrinsicPadding);
    }

    private float getRubberBandFactor(boolean onTop) {
        if (!onTop) {
            return RUBBER_BAND_FACTOR_NORMAL;
@@ -6583,16 +6550,4 @@ public class NotificationStackScrollLayout
        void onAnimationEnd(
                List<ExpandableNotificationRow> viewsToRemove, @SelectedRows int selectedRows);
    }

    /**
     *
     */
    public interface OnNotificationRemovedListener {
        /**
         *
         * @param child
         * @param isTransferInProgress
         */
        void onNotificationRemoved(ExpandableView child, boolean isTransferInProgress);
    }
}