Loading policy/src/com/android/internal/policy/impl/LockScreen.java +22 −5 Original line number Diff line number Diff line Loading @@ -1141,14 +1141,31 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM mNowPlaying.setSelected(true); // set focus to TextView to allow scrolling } // Set album art if (shouldShowAlbumArt()) { Uri uri = getArtworkUri(getContext(), KeyguardViewMediator.SongId(), KeyguardViewMediator.AlbumId()); if (uri != null && mAlbumArtToggle && !(mUseRingLockscreen && mCustomAppToggle && !mHideUnlockTab)) { if (uri != null) { mAlbumArt.setImageURI(uri); mAlbumArt.setVisibility(View.VISIBLE); } } } } private boolean shouldShowAlbumArt() { if (!mAlbumArtToggle) { return false; } if (mHideUnlockTab) { return false; } if (mUseRingLockscreen) { if (mCustomAppToggle || mRingMinimal) { return false; } } return true; } private void sendMediaButtonEvent(int code) { long eventtime = SystemClock.uptimeMillis(); Loading Loading
policy/src/com/android/internal/policy/impl/LockScreen.java +22 −5 Original line number Diff line number Diff line Loading @@ -1141,14 +1141,31 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM mNowPlaying.setSelected(true); // set focus to TextView to allow scrolling } // Set album art if (shouldShowAlbumArt()) { Uri uri = getArtworkUri(getContext(), KeyguardViewMediator.SongId(), KeyguardViewMediator.AlbumId()); if (uri != null && mAlbumArtToggle && !(mUseRingLockscreen && mCustomAppToggle && !mHideUnlockTab)) { if (uri != null) { mAlbumArt.setImageURI(uri); mAlbumArt.setVisibility(View.VISIBLE); } } } } private boolean shouldShowAlbumArt() { if (!mAlbumArtToggle) { return false; } if (mHideUnlockTab) { return false; } if (mUseRingLockscreen) { if (mCustomAppToggle || mRingMinimal) { return false; } } return true; } private void sendMediaButtonEvent(int code) { long eventtime = SystemClock.uptimeMillis(); Loading