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

Commit dd26a7e6 authored by Selim Cinek's avatar Selim Cinek
Browse files

Reinflate notifications for overlay changes

Previously it would still retain the old font,
we're now reinflating them and also the other
notification related views which have fonts.

Test: manual, change theme
Bug: 120987987
Change-Id: I6ff2639dfea82317680759610567aec1a80ccf51
parent 6f56fc13
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
+5 −0
Original line number Diff line number Diff line
@@ -258,6 +258,11 @@ public class StatusBarNotificationPresenter implements NotificationPresenter,
        }
    }

    @Override
    public void onOverlayChanged() {
        onDensityOrFontScaleChanged();
    }

    private void updateNotificationOnUiModeChanged() {
        ArrayList<NotificationEntry> userNotifications
                = mEntryManager.getNotificationData().getNotificationsForCurrentUser();