Merge "[Audiosharing] Handle cancel notification in receiver" into main

This commit is contained in:
Yiyi Shen
2025-02-19 07:38:32 -08:00
committed by Android (Google) Code Review
2 changed files with 22 additions and 0 deletions

View File

@@ -141,6 +141,12 @@ public class AudioSharingReceiver extends BroadcastReceiver {
showAddSourceNotification(context, device);
}
break;
case ACTION_LE_AUDIO_SHARING_CANCEL_NOTIF:
int notifId = intent.getIntExtra(EXTRA_NOTIF_ID, -1);
if (notifId != -1) {
cancelSharingNotification(context, notifId);
}
break;
default:
Log.w(TAG, "Received unexpected intent " + intent.getAction());
}