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

Commit f3e65f1e authored by Yining Liu's avatar Yining Liu Committed by Android (Google) Code Review
Browse files

Merge "Update default illustration to show on settings page" into main

parents c3372369 600c496a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -165,7 +165,12 @@ public class MinimalismPreferenceController

    private void refreshState(@Nullable Uri uri) {
        if (mPreference == null) return;
        if (URI_LOCK_SCREEN_SHOW_NOTIFICATIONS.equals(uri) && !lockScreenShowNotification()) {
        if (!Flags.notificationMinimalism()) {
            // When minimalism flag is off, show the full list illustration
            highlightIllustration(LS_MINIMALISM_OFF);
            mPreference.setVisible(false);
        } else if (URI_LOCK_SCREEN_SHOW_NOTIFICATIONS.equals(uri)
                && !lockScreenShowNotification()) {
            // hide all preferences when showing notifications on lock screen is disabled
            mIllustrations.forEach((value, preference)
                    -> preference.setVisible(false));