Permalink
Browse files

Disable Lockscreen Media Art [1/2]

* toggle to choose whether or not to show album art/media art on lockscreen

Special thanks to @atl4tis from Cataclysm rom for pointing out where to hook into this

Change-Id: I3afe8f12be43c22b77f666b8d6a53b3bba08cf83
  • Loading branch information...
beanstown106 authored and xlxfoxxlx committed Oct 24, 2015
1 parent 8747c6a commit 835a89b4c378e23589f6e96e292ad004025fd4a7
@@ -3754,6 +3754,12 @@ public boolean validate(String value) {
public static final String VOLBTN_MUSIC_CONTROLS = "volbtn_music_controls";
/**
* Whether to show media art on lockscreen
* @hide
*/
public static final String LOCKSCREEN_MEDIA_METADATA = "lockscreen_media_metadata";
/**
* Whether the phone volume up / down effect should be played
* @hide
*/
@@ -2612,7 +2612,8 @@ public void updateMediaMetaData(boolean metaDataChanged, boolean allowEnterAnima
}
Drawable artworkDrawable = null;
if (mMediaMetadata != null) {
if (mMediaMetadata != null && (Settings.System.getIntForUser(mContext.getContentResolver(),
Settings.System.LOCKSCREEN_MEDIA_METADATA, 1, UserHandle.USER_CURRENT) == 1)) {
Bitmap artworkBitmap = null;
artworkBitmap = mMediaMetadata.getBitmap(MediaMetadata.METADATA_KEY_ART);
if (artworkBitmap == null) {

0 comments on commit 835a89b

Please sign in to comment.