perfect-mvp icon indicating copy to clipboard operation
perfect-mvp copied to clipboard

关于V层和P层绑定的时间问题

Open Panxiaoan1993 opened this issue 6 years ago • 1 comments

Panxiaoan1993 avatar May 25 '18 07:05 Panxiaoan1993

翻看源码发现V层跟P层绑定是在OnResume方法中,如果在OnCreate中发起的任何事件,在P层中调用mvpView都有可能发生空指针异常,此时的V对象是空,作者有空优化一下?如果我是我的理解或者用法有问题,请指教一下。

Panxiaoan1993 avatar May 25 '18 07:05 Panxiaoan1993