Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

@Receiver.Extra of type Intent is not considered as a Parcelable extra of the broadcast Intent #1717

@tlevavasseur-innovantic

Description

@tlevavasseur-innovantic
@Receiver(actions = "BROADCAST_NETWORK_ERROR", local = true)
protected void onNetworkError(@Receiver.Extra("EXTRA_RETRY_INTENT") Intent retry) {

will consider the Intent param "retry" as the broadcast intent and not the "EXTRA_RETRY_INTENT" Parcelable extra of the broadcast intent.

Doing this don't solve the issue :

@Receiver(actions = "BROADCAST_NETWORK_ERROR", local = true)
protected void onNetworkError(Intent broadcast, @Receiver.Extra("EXTRA_RETRY_INTENT") Intent retry) {

and the broadcast intent is passed as param twice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions