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

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

Merge "Rename ExpandableNotificationRow.setHeadsUpVisible to markHeadsUpSeen" into main

parents 8f33bbd3 159a8d06
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -698,7 +698,7 @@ public final class NotificationEntry extends ListEntry implements NotificationRo
    }

    public void setHeadsUpIsVisible() {
        if (row != null) row.setHeadsUpIsVisible();
        if (row != null) row.markHeadsUpSeen();
    }

    //TODO: i'm imagining a world where this isn't just the row, but I could be rwong
+2 −2
Original line number Diff line number Diff line
@@ -859,8 +859,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
    }

    @Override
    public void setHeadsUpIsVisible() {
        super.setHeadsUpIsVisible();
    public void markHeadsUpSeen() {
        super.markHeadsUpSeen();
        mMustStayOnScreen = false;
    }

+4 −1
Original line number Diff line number Diff line
@@ -637,7 +637,10 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable, Ro
        return false;
    }

    public void setHeadsUpIsVisible() {
    /**
     * Called, when the notification has been seen by the user in the heads up state.
     */
    public void markHeadsUpSeen() {
    }

    public boolean showingPulsing() {
+2 −2
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ public class ExpandableViewState extends ViewState {
            expandableView.setInShelf(inShelf);

            if (headsUpIsVisible) {
                expandableView.setHeadsUpIsVisible();
                expandableView.markHeadsUpSeen();
            }
        }
    }
@@ -231,7 +231,7 @@ public class ExpandableViewState extends ViewState {
        expandableView.setInShelf(this.inShelf);

        if (headsUpIsVisible) {
            expandableView.setHeadsUpIsVisible();
            expandableView.markHeadsUpSeen();
        }
    }

+2 −2
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ constructor(private val viewModel: NotificationListViewModel) {
                            removed.forEach { key ->
                                val row = obtainView(key)
                                parentView.generateHeadsUpAnimation(row, /* isHeadsUp= */ false)
                                row.setHeadsUpIsVisible()
                                row.markHeadsUpSeen()
                            }
                        }
                    }