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

Closed

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!
    }

Activity

  1. dodgex commented on Nov 23, 2016

    @dodgex
    Member

    Thank you for your report. I openend a PR to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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