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

Commit f75b3a3a authored by LuK1337's avatar LuK1337 Committed by Łukasz Patron
Browse files

fixup! SystemUI: Allow to disable Lockscreen Media Art [1/3]

* Fixes custom lockscreen wallpaper.

Change-Id: I0d65edc6c98278a1ca8a20a8906eb6b91c846af2
parent c6a7585c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -534,7 +534,7 @@ public class NotificationMediaManager implements Dumpable, TunerService.Tunable
    private void finishUpdateMediaMetaData(boolean metaDataChanged, boolean allowEnterAnimation,
            @Nullable Bitmap bmp) {
        Drawable artworkDrawable = null;
        if (bmp != null) {
        if (bmp != null && (mShowMediaMetadata || !ENABLE_LOCKSCREEN_WALLPAPER)) {
            artworkDrawable = new BitmapDrawable(mBackdropBack.getResources(), bmp);
        }
        boolean hasMediaArtwork = artworkDrawable != null;
@@ -555,7 +555,7 @@ public class NotificationMediaManager implements Dumpable, TunerService.Tunable
        StatusBarWindowController windowController = mStatusBarWindowController.get();
        boolean hideBecauseOccluded = shadeController != null && shadeController.isOccluded();

        final boolean hasArtwork = mShowMediaMetadata && artworkDrawable != null;
        final boolean hasArtwork = artworkDrawable != null;
        mColorExtractor.setHasMediaArtwork(hasMediaArtwork);
        if (mScrimController != null) {
            mScrimController.setHasBackdrop(hasArtwork);