Skip to content

Commit

Permalink
修改initData与addListeners调用顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
jenly1314 committed Feb 4, 2017
1 parent b376a48 commit b3e5ed6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/king/base/BaseActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ protected void onCreate(Bundle savedInstanceState) {
curPage = 1;
registerEvent(this);
initUI();
addListeners();
initData();
addListeners();


}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/king/base/BaseDialogFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,

curPage = 1;
initUI();
addListeners();
initData();
addListeners();
if(rootView!=null)
return rootView;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/king/base/BaseFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
rootView = inflater.inflate(inflaterRootView(), container, false);
curPage = 1;
initUI();
addListeners();
initData();
addListeners();

if(rootView!=null)
return rootView;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/king/base/BaseInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public interface BaseInterface {


public abstract void initUI();
public abstract void addListeners();
public abstract void initData();
public abstract void addListeners();

public abstract void onEventMessage(EventMessage em);

Expand Down

0 comments on commit b3e5ed6

Please sign in to comment.