opt set pip actions

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-01 12:46:27 +08:00
parent 9ac37d6fb3
commit 2de59b0c9b
2 changed files with 8 additions and 16 deletions

View File

@@ -32,16 +32,6 @@ import java.util.List;
public class MediaHelper {
private static final String TAG = "MediaButtonReceiver";
public static PendingIntent buildMediaButtonPendingIntent(Context context, long action) {
ComponentName mbrComponent = getMediaButtonReceiverComponent(context);
if (mbrComponent == null) {
Log.w(TAG, "A unique media button receiver could not be found in the given context, so "
+ "couldn't build a pending intent.");
return null;
}
return buildMediaButtonPendingIntent(context, mbrComponent, action);
}
public static PendingIntent buildMediaButtonPendingIntent(Context context, ComponentName mbrComponent, long action) {
if (mbrComponent == null) {
Log.w(TAG, "The component name of media button receiver should be provided.");