Skip to content

Commit

Permalink
库优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weikaiyun committed Sep 17, 2020
1 parent fe098bd commit 7051fe3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public interface ISupportFragment {

// ResultCode
int RESULT_CANCELED = 0;
int RESULT_OK = -1;

boolean isVisible = false;
int RESULT_OK = 1;

@IntDef({STANDARD, SINGLETOP, SINGLETASK})
@Retention(RetentionPolicy.SOURCE)
Expand All @@ -30,8 +28,6 @@ public interface ISupportFragment {

void post(Runnable runnable);

int getLayoutId();

void lazyInit();

void setFragmentResult(int resultCode, Bundle bundle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,10 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
mDelegate.onCreate(savedInstanceState);
}

@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(getLayoutId(), container,false);
}

@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mDelegate.onViewCreated(savedInstanceState);
initView(view, savedInstanceState);
initData(view, savedInstanceState);
}

@Override
Expand All @@ -84,14 +76,6 @@ public void onPause() {
onInvisible();
}

public void initView(@NonNull View view, @Nullable Bundle savedInstanceState) {

}

public void initData(@NonNull View view, @Nullable Bundle savedInstanceState) {

}

public void lazyInit() {

}
Expand Down

0 comments on commit 7051fe3

Please sign in to comment.