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

Commit 205aa4f6 authored by Nate Myren's avatar Nate Myren
Browse files

Allow public notifications to expand with a swipe

Now with flag

Fixes: 398853084
Test: manual
Flag: android.app.expanding_public_view
Change-Id: I80d3268ab21cc9cb89daf5e4f16628e65eabe4e2
parent 7aec8c1a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -264,6 +264,16 @@ flag {
  }
}

flag {
  name: "expanding_public_view"
  namespace: "systemui"
  description: "enables user expanding the public view of a notification"
  bug: "398853084"
    metadata {
    purpose: PURPOSE_BUGFIX
  }
}

flag {
  name: "api_rich_ongoing"
  is_exported: true
+3 −0
Original line number Diff line number Diff line
@@ -3065,6 +3065,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView

        mUserLocked = userLocked;
        mPrivateLayout.setUserExpanding(userLocked);
        if (android.app.Flags.expandingPublicView()) {
            mPublicLayout.setUserExpanding(userLocked);
        }
        // This is intentionally not guarded with mIsSummaryWithChildren since we might have had
        // children but not anymore.
        if (mChildrenContainer != null) {