[6.4.0]
[mView使用前判空]
This commit is contained in:
@@ -27,13 +27,15 @@ public class MainPresenter extends Presenter<MainView> {
|
||||
@Override
|
||||
public void handleMessage(Message msg) {
|
||||
super.handleMessage(msg);
|
||||
switch (msg.what) {
|
||||
case MainConstants.MSG_HIDE_MAP_COVER_FRAME:
|
||||
mView.hideCoverUpLayout();
|
||||
break;
|
||||
case MainConstants.MSG_LOAD_MODULES:
|
||||
mView.loadModules();
|
||||
break;
|
||||
if(mView!=null) {
|
||||
switch (msg.what) {
|
||||
case MainConstants.MSG_HIDE_MAP_COVER_FRAME:
|
||||
mView.hideCoverUpLayout();
|
||||
break;
|
||||
case MainConstants.MSG_LOAD_MODULES:
|
||||
mView.loadModules();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user