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

@niusounds

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions