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

Commit c48b83bb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't show album art on AOD"

parents b0538e6d d11e77d3
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -1596,7 +1596,7 @@ public class StatusBar extends SystemUI implements DemoMode,


        final boolean hasArtwork = artworkDrawable != null;
        final boolean hasArtwork = artworkDrawable != null;


        if ((hasArtwork || DEBUG_MEDIA_FAKE_ARTWORK)
        if ((hasArtwork || DEBUG_MEDIA_FAKE_ARTWORK) && !mDozing
                && (mState != StatusBarState.SHADE || allowWhenShade)
                && (mState != StatusBarState.SHADE || allowWhenShade)
                && mFingerprintUnlockController.getMode()
                && mFingerprintUnlockController.getMode()
                        != FingerprintUnlockController.MODE_WAKE_AND_UNLOCK_PULSING
                        != FingerprintUnlockController.MODE_WAKE_AND_UNLOCK_PULSING
@@ -1657,15 +1657,16 @@ public class StatusBar extends SystemUI implements DemoMode,
                }
                }
            }
            }
        } else {
        } else {
            // need to hide the album art, either because we are unlocked or because
            // need to hide the album art, either because we are unlocked, on AOD
            // the metadata isn't there to support it
            // or because the metadata isn't there to support it
            if (mBackdrop.getVisibility() != View.GONE) {
            if (mBackdrop.getVisibility() != View.GONE) {
                if (DEBUG_MEDIA) {
                if (DEBUG_MEDIA) {
                    Log.v(TAG, "DEBUG_MEDIA: Fading out album artwork");
                    Log.v(TAG, "DEBUG_MEDIA: Fading out album artwork");
                }
                }
                boolean cannotAnimateDoze = mDozing && !ScrimState.AOD.getAnimateChange();
                if (mFingerprintUnlockController.getMode()
                if (mFingerprintUnlockController.getMode()
                        == FingerprintUnlockController.MODE_WAKE_AND_UNLOCK_PULSING
                        == FingerprintUnlockController.MODE_WAKE_AND_UNLOCK_PULSING
                        || hideBecauseOccluded) {
                        || hideBecauseOccluded || cannotAnimateDoze) {


                    // We are unlocking directly - no animation!
                    // We are unlocking directly - no animation!
                    mBackdrop.setVisibility(View.GONE);
                    mBackdrop.setVisibility(View.GONE);