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

Avoid auto-generating methods if already present in parent classes #127

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

siempredelao
Copy link
Contributor

@siempredelao siempredelao commented Mar 7, 2017

Hi @TomasKypta, this PR solves issues #68, #74, #82, #100, #108 following @NikolaDespotoski's explanation here #74.

Behaviour followed has been:
1. find method (onCreate/onCreateView/onDestroyView) in current class and superclasses.
1.a. if list returned has size 1, that means that the only method found is the Android code base one. Then, add method in current class with bind/unbind.
1.b. otherwise
1.b.1. if no methods from 1 (that is to say, current class and superclasses) has ButterKnife bind/unbind declared.
1.b.1.1. find method only in current class
1.b.1.1.a. if method is found, just add bind/unbind.
1.b.1.1.b. otherwise, add method with bind/unbind.
1.b.2. otherwise, no action is needed

(not sure if it's the best explanation that way, maybe a flow chart would have been better).

@siempredelao siempredelao changed the title Avoid re-generating methods if already present in parent classes Avoid auto-generating methods if already present in parent classes May 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant