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

Commit 987cfcc8 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Fix regressions with DecoratedCustomViewStyle

Fixes: 183641274
Test: atest NotificationTemplateTest
Change-Id: I3201e8cde339fb64412c298958786cfdd7f3303b
parent fbcde0f7
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -12276,19 +12276,13 @@ public class Notification implements Parcelable
        }

        public StandardTemplateParams decorationType(int decorationType) {
            // These fields are removed by the decoration process, and thus would not show anyway;
            // hiding them is a minimal time/space optimization.
            hideAppName(true);
            hideTitle(true);
            hideSubText(true);
            hideTime(true);
            // Minimally decorated custom views do not show certain pieces of chrome that have
            // always been shown when using DecoratedCustomViewStyle.
            boolean hideOtherFields = decorationType <= DECORATION_MINIMAL;
            hideLargeIcon(hideOtherFields);
            hideProgress(hideOtherFields);
            hideActions(hideOtherFields);
            hideSnoozeButton(hideOtherFields);
            return this;
        }
    }