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
This commit is contained in:
Jeff DeCew
2021-10-29 00:32:42 +00:00
parent 6665ad79a3
commit bb67ce654f

View File

@@ -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);