Merge "Reinflate notifications for overlay changes"
This commit is contained in:
@@ -578,6 +578,10 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
||||
@Override
|
||||
@ShadeViewRefactor(RefactorComponent.SHADE_VIEW)
|
||||
public void onDensityOrFontScaleChanged() {
|
||||
reinflateViews();
|
||||
}
|
||||
|
||||
private void reinflateViews() {
|
||||
inflateFooterView();
|
||||
inflateEmptyShadeView();
|
||||
updateFooter();
|
||||
@@ -608,6 +612,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
||||
mCornerRadius = newRadius;
|
||||
invalidate();
|
||||
}
|
||||
reinflateViews();
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
|
||||
@@ -258,6 +258,11 @@ public class StatusBarNotificationPresenter implements NotificationPresenter,
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onOverlayChanged() {
|
||||
onDensityOrFontScaleChanged();
|
||||
}
|
||||
|
||||
private void updateNotificationOnUiModeChanged() {
|
||||
ArrayList<NotificationEntry> userNotifications
|
||||
= mEntryManager.getNotificationData().getNotificationsForCurrentUser();
|
||||
|
||||
Reference in New Issue
Block a user