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

Commit 68a4c99a authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Hide Turn off & inline controls for promoted info

Bug: 367705002
Test: manual
Flag: com.android.systemui.permission_helper_ui_rich_ongoing
Change-Id: I4332fa818e1164d7f8893fa97205e375aa24c962
parent d1202826
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -86,6 +86,10 @@ public class PromotedNotificationInfo extends NotificationInfo {
        mPackageDemotionInteractor = packageDemotionInteractor;

        bindDemote(sbn, pkg);

        // Override the visibility of elements we don't want for the promoted notification
        findViewById(R.id.interruptiveness_settings).setVisibility(GONE);
        findViewById(R.id.turn_off_notifications).setVisibility(GONE);
    }

    protected void bindDemote(StatusBarNotification sbn, String packageName) {