Method based @ViewById on Fragment generates wrong code · Issue #1904 · androidannotations/androidannotations · GitHub
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.

Method based @ViewById on Fragment generates wrong code #1904

Description

@niusounds
@EFragment(R.layout.fragment_my_layout)
public class MyFragment extends Fragment {

    @ViewById(R.id.myView)
    void initMyView(TextView myView) {

    }
}

This generates wrong code in MyFragment_

...
    @Override
    public void onDestroyView() {
        super.onDestroyView();
        contentView_ = null;
        initMyView = null; // This is wrong!
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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