urbanairship-core/src/main/java/com/urbanairship/AirshipReceiver.java
private void handleDismissedIntent(@NonNull Context context, @NonNull Intent intent) {
        int id = intent.getIntExtra(PushManager.EXTRA_NOTIFICATION_ID, -1);

        if (!intent.hasExtra(PushManager.EXTRA_PUSH_MESSAGE_BUNDLE)) {
            Logger.error("AirshipReceiver - Intent is missing push message for: " + intent.getAction());
            return;
        }

        PushMessage message = PushMessage.fromIntent(intent);
        if (message == null) {
            Logger.error("AirshipReceiver - Intent is missing push message for: " + intent.getAction());
            return;
        }

        onNotificationDismissed(context, new NotificationInfo(message, id));
    }
/**
     * Handles the notification dismissed intent.
     *
     * @param context The application context.
     * @param intent The notification dismissed intent.
     */
Handles the notification dismissed intent.
@param context The application context.
@param intent The notification dismissed intent.
Handles the notification dismissed intent . @param context The application context . @param intent The notification dismissed intent .
private void handleDismissedIntent(@NonNull Context context, @NonNull Intent intent) {
        int id = intent.getIntExtra(PushManager.EXTRA_NOTIFICATION_ID, -1);
        if (!intent.hasExtra(PushManager.EXTRA_PUSH_MESSAGE_BUNDLE)) {
            Logger.error("AirshipReceiver - Intent is missing push message for: " + intent.getAction());
            return;
        }
        PushMessage message = PushMessage.fromIntent(intent);
        if (message == null) {
            Logger.error("AirshipReceiver - Intent is missing push message for: " + intent.getAction());
            return;
        }
        onNotificationDismissed(context, new NotificationInfo(message, id));
    }
private void handleDismissedIntent ( @ NonNull Context context , @ NonNull Intent intent ) { int id = intent . getIntExtra ( PushManager . EXTRA_NOTIFICATION_ID , - 1 ) ; if ( ! intent . hasExtra ( PushManager . EXTRA_PUSH_MESSAGE_BUNDLE ) ) { Logger . error ( "AirshipReceiver - Intent is missing push message for: " + intent . getAction ( ) ) ; return ; } PushMessage message = PushMessage . fromIntent ( intent ) ; if ( message == null ) { Logger . error ( "AirshipReceiver - Intent is missing push message for: " + intent . getAction ( ) ) ; return ; } onNotificationDismissed ( context , new NotificationInfo ( message , id ) ) ; }
Handles the notification dismissed intent.
Handles the notification dismissed intent .