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

Commit e2e48150 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[RONs] Bind ProgressStyle contracted and heads-up views

Bug: 370497239
Test: Post ProgressStyle and observe no progress bar in collapsed and heads-up cases.
Flag: android.app.ui_rich_ongoing
Change-Id: I5f4c0aaea0ed8f1857c211be4fab31e981127b81
parent 5ade2514
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -11611,6 +11611,30 @@ public class Notification implements Parcelable
            // actually be included.
            return true;
        }
        /**
         * @hide
         */
        @Override
        public RemoteViews makeContentView(boolean increasedHeight) {
            final StandardTemplateParams p = mBuilder.mParams.reset()
                    .viewType(StandardTemplateParams.VIEW_TYPE_NORMAL)
                    .hideProgress(true)
                    .fillTextsFrom(mBuilder);
            return getStandardView(mBuilder.getBaseLayoutResource(), p, null /* result */);
        }
        /**
         * @hide
         */
        @Override
        public RemoteViews makeHeadsUpContentView(boolean increasedHeight) {
            final StandardTemplateParams p = mBuilder.mParams.reset()
                    .viewType(StandardTemplateParams.VIEW_TYPE_HEADS_UP)
                    .hideProgress(true)
                    .fillTextsFrom(mBuilder);
            return getStandardView(mBuilder.getHeadsUpBaseLayoutResource(), p, null /* result */);
        }
        private static @NonNull ArrayList<Bundle> getProgressSegmentsAsBundleList(
                @Nullable List<Segment> progressSegments) {