fix: miui music controls

This commit is contained in:
tehcneko 2023-01-09 20:01:48 +08:00 committed by xtaodada
parent fda061cc18
commit 04bb691aed
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -58,7 +58,7 @@ public class MusicPlayerService extends Service implements NotificationCenter.No
private AudioManager audioManager;
private static boolean supportBigNotifications = Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
private static boolean supportLockScreenControls = Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP || !TextUtils.isEmpty(AndroidUtilities.getSystemProperty("ro.miui.ui.version.code"));
private static boolean supportLockScreenControls = Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP;
private MediaSession mediaSession;
private PlaybackState.Builder playbackState;