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

Commit 86887fcb authored by Julia Reynolds's avatar Julia Reynolds Committed by Automerger Merge Worker
Browse files

Limit the number of concurrent notifs appear on screen am: abe9246c am: 273df634

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15531757

Change-Id: Ia192c759c3a982740fe2dcb9de9a6acdd55bfa44
parents 0b2493e9 273df634
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -81,9 +81,10 @@
    <com.android.settings.notification.history.NotificationHistoryRecyclerView
        android:id="@+id/notification_list"
        android:layout_width="match_parent"
            android:layout_height="wrap_content"
        android:layout_height="500dp"
        android:clipChildren="true"
        android:clipToPadding="true"
        android:clipToOutline="true"
        android:importantForAccessibility="yes"
        android:scrollbars="none"/>

+5 −0
Original line number Diff line number Diff line
@@ -71,6 +71,11 @@ public class NotificationHistoryAdapter extends
        return new NotificationHistoryViewHolder(view);
    }

    @Override
    public long getItemId(int position) {
        return mValues.get(position).hashCode();
    }

    @Override
    public void onBindViewHolder(final @NonNull NotificationHistoryViewHolder holder,
            int position) {
+0 −1
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ public class NotificationHistoryRecyclerView extends RecyclerView {
        ItemTouchHelper touchHelper = new ItemTouchHelper(
                new DismissTouchHelper(0, ItemTouchHelper.START | ItemTouchHelper.END));
        touchHelper.attachToRecyclerView(this);
        setNestedScrollingEnabled(false);
    }

    public void setOnItemSwipeDeleteListener(OnItemSwipeDeleteListener listener) {