[Audiosharing] Handle cancel notification in receiver
Test: atest Bug: 395786392 Flag: com.android.settingslib.flags.enable_le_audio_sharing Change-Id: Ib4b8ed3eff1df01819b37be2c1334abeae00ea2c
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user