From 13a492bb861eaef37bd630ff9c775b7839896ebb Mon Sep 17 00:00:00 2001 From: tehcneko Date: Mon, 9 Jan 2023 20:01:48 +0800 Subject: [PATCH] fix: miui music controls --- .../main/java/org/telegram/messenger/MusicPlayerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MusicPlayerService.java b/TMessagesProj/src/main/java/org/telegram/messenger/MusicPlayerService.java index 336f9143c..d01c363d7 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MusicPlayerService.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MusicPlayerService.java @@ -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;