I have updated my Sdk Oreo 8.0 When i come my current fragment to my previous fragment its crash because i am using if (view == null) 
if i removed this condition it 'll work fine but have to load again view. 

```
@Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
                             @Nullable Bundle savedInstanceState) {
        if (view == null) {
            view = inflater.inflate(R.layout.home_fragement_layout, container, false);
            ButterKnife.bind(this, view);
            bundle=getArguments();
            registrationResponse=(RegistrationResponse)bundle.getSerializable("registerresponse");
            setadapter();
            hitUserFavouriteOutfitsapi();
           swipeRefreshLayout.setOnRefreshListener(this);
        }
        toolBarTopChangeState =((ToolBarTopChangeState)context);
        toolBarTopChangeState.stateChangeToolBarIcon(0);
        toolBarTopChangeState.stateChangeToolBarText(getString(R.string.app_name));
        return view;
    }

```