From bb67ce654fab8cf2fb140e8a66bb237c943b23f3 Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Fri, 29 Oct 2021 00:32:42 +0000 Subject: [PATCH] Fix missing notification footer. A refactor to the DeviceProvisionedController changed the behavior of the addCallback methhod so that the methods of the supplied callback were no longer called. The NSSL Controller depended on this behavior, so we used the default initialization state of the variable, not provisioned. This hid the footer until a provision change. Change-Id: Ie440b33dc344eb75bc026465606269850984d0a9 Fixes: 203744291 Test: manual --- .../stack/NotificationStackScrollLayoutController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java index 9923faeb8b5c2..229e364603395 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java @@ -810,8 +810,9 @@ public class NotificationStackScrollLayoutController { return Unit.INSTANCE; }); - // callback is invoked synchronously, updating mView immediately + // attach callback, and then call it to update mView immediately mDeviceProvisionedController.addCallback(mDeviceProvisionedListener); + mDeviceProvisionedListener.onDeviceProvisionedChanged(); if (mView.isAttachedToWindow()) { mOnAttachStateChangeListener.onViewAttachedToWindow(mView);