路径为:
src/com/android/mms/transaction/MessagingNotification.java |
public static void cancelNotification(Context context, int notificationId) {
/// M:
Log.d(TAG, "cancelNotification, notificationId:" + notificationId);
NotificationManager nm = (NotificationManager) context.getSystemService(
Context.NOTIFICATION_SERVICE);
nm.cancelAsUser(TAG, notificationId, UserHandle.CURRENT_OR_SELF);
nm.cancel(notificationId);//test add
/// M: ALPS00436165, cancel NotificationManagerPlus shown in other AP @{
/*
if (notificationId == NOTIFICATION_ID) {
EncapsulatedNotificationManagerPlus.cancel(context, 1);
}
*/
/// @}
}