Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Oct 18, 2021
1 parent a0dd3e3 commit 3445791
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.kunfei.basemvplib;

import static com.kunfei.basemvplib.BaseActivity.START_SHEAR_ELE;

import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Build;
Expand All @@ -15,10 +17,6 @@
import com.kunfei.basemvplib.impl.IPresenter;
import com.kunfei.basemvplib.impl.IView;

import java.util.Objects;

import static com.kunfei.basemvplib.BaseActivity.START_SHEAR_ELE;

public abstract class BaseFragment<T extends IPresenter> extends Fragment implements IView {
protected View view;
protected Bundle savedInstanceState;
Expand Down Expand Up @@ -78,7 +76,7 @@ protected void initSDK() {

protected void startActivityByAnim(Intent intent, int animIn, int animExit) {
startActivity(intent);
Objects.requireNonNull(getActivity()).overridePendingTransition(animIn, animExit);
requireActivity().overridePendingTransition(animIn, animExit);
}

protected void startActivityByAnim(Intent intent, @NonNull View view, @NonNull String transitionName, int animIn, int animExit) {
Expand Down

0 comments on commit 3445791

Please sign in to comment.