Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对于Presenter层持有的View如何更好的控制View报空的问题 #42

Open
heyzhuyue opened this issue Jan 4, 2018 · 1 comment

Comments

@heyzhuyue
Copy link

在框架实践使用中,发现Presenter层持有的View实例会出现报空问题,在开发过程中如何可以很好控制View空的问题,现在的解决方案是每次使用View都进行判空处理,感觉过于笨拙,有没有好的解决方案可以很好的处理这个问题,向大牛请教!😁

@csrbzhb
Copy link

csrbzhb commented Jan 9, 2018

你好,我发现楼主要用dagger进行对mainActivity注入时,对HomePagePresenter用了dagger2注入,而DrawerMenuPresenter却并未用dagger注入,却还留头DrawerMenuModule,但我加了DrawerMenuComponent后,却又编译不过。希望楼主对DrawerMenuPresenter也进行Dagger注入。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants