Merge "Reinflate notifications for overlay changes"

This commit is contained in:
Selim Cinek
2019-02-13 02:19:11 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 0 deletions

View File

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

View File

@@ -258,6 +258,11 @@ public class StatusBarNotificationPresenter implements NotificationPresenter,
}
}
@Override
public void onOverlayChanged() {
onDensityOrFontScaleChanged();
}
private void updateNotificationOnUiModeChanged() {
ArrayList<NotificationEntry> userNotifications
= mEntryManager.getNotificationData().getNotificationsForCurrentUser();